Hi,

On 6 Jul 2015 at 17:12:11, Guillaume Louis-Marie Delhumeau 
([email protected](mailto:[email protected])) 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/d5f4997ddf40d70c8eef9a9ee0e9e98d767eb586...26b63f99654c90ba39c0601ee0d7c9397e1c629c)
> 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! 
https://github.com/xwiki/xwiki-platform/compare/d5f4997ddf40d70c8eef9a9ee0e9e98d767eb586...26b63f99654c90ba39c0601ee0d7c9397e1c629c
 vs 
https://github.com/xwiki/xwiki-platform/commit/3e83b6cf44e8#diff-3d532b9e95503f09519b75a7525fc3beR76
 )

Sol3 is the best IMO (the shortest but also supports all Entity Types) but it’s 
for later.

Thanks
-Vincent

> [1]
> http://cxf.547215.n5.nabble.com/Passing-array-as-a-parameter-in-JAX-RS-td563656.html
>  
> Thanks,
> Guillaume

[snip]

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to