Hi,
On 6 Jul 2015 at 17:12:11, Guillaume Louis-Marie Delhumeau
(gdelhumeau@xwiki.com(mailto:gdelhumeau@xwiki.com)) wrote:
Let me resume everything.
It seems that jax-rs does not have a solution for handling list parameters
[1] (except by using a query string, or matrix parameters, which we don't
want). But, thanks to some hacks (example there:
https://github.com/xwiki/xwiki-platform/compare/d5f4997ddf40d70c8eef9a9ee0e…)
we can manage to do it. We might find better solution afterwards.
So we have several choices:
1 - /xwiki/rest/wikis/xwiki/spaces/Europe/France/Paris/pages/WebHome - "/"
as separator for nested spaces
2 - Edouard's proposition:
/xwiki/rest/wikis/xwiki/spaces/Europe/spaces/France/spaces/Paris/pages/WebHome
- with multiple "spaces/" prefix
3 - Vincent's proposition -
/xwiki/rest/v2/type/page/ref/wiki:Europe.France.Paris.WebHome - the
reference version
If we want to have this in M1, options 1 and 2 are more realistic.
So for me:
Sol1 seems the best since it’s the most readable one and from what you say sol2 doesn’t
bring any implementation improvement (actually it’s more complex to implement sol2 than
sol1!
)
Sol3 is the best IMO (the shortest but also supports all Entity Types) but it’s for
later.
Thanks
-Vincent