Re: Support for sub-resources in struts 2 rest plugin

2019-03-21 Thread DevaGerald
Any update on this requirement? Or atleast any workaround? -- Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mai

Re: Support for sub-resources in struts 2 rest plugin

2018-04-30 Thread DevaGerald
I have created a new ticket. https://issues.apache.org/jira/browse/WW-4935 Thanks, Deva. -- Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: Support for sub-resources in struts 2 rest plugin

2018-04-30 Thread Lukasz Lenart
This isn't supported right now. I think it would be good re-use @Action annotation ro define a new (e.g. @Resource) to allow define custom paths. Could you register a ticket? 2018-04-29 15:55 GMT+02:00 DevaGerald : > Thanks for your reply. > > I am already using struts-2 rest plugin in production.

Re: Support for sub-resources in struts 2 rest plugin

2018-04-29 Thread DevaGerald
Thanks for your reply. I am already using struts-2 rest plugin in production. What we are trying to solve here, is a hierarchical resource entity API implementation. Let me give an example of what I am trying to do. For getting an organization info, we can use a REST API like /organizations/orga

Re: Support for sub-resources in struts 2 rest plugin

2018-04-29 Thread Yasser Zamani
On 4/27/2018 11:45 AM, DevaGerald wrote: > Hi, > > Sorry if i miss something here. As of my knowledge, the struts 2 rest plugin > supports only the following : > /resource - GET > /resource - POST > /resource/$resource_id - GET > /resource/$resource_id - PUT > /resource/$resource_id - DELETE >

Support for sub-resources in struts 2 rest plugin

2018-04-27 Thread DevaGerald
Hi, Sorry if i miss something here. As of my knowledge, the struts 2 rest plugin supports only the following : /resource - GET /resource - POST /resource/$resource_id - GET /resource/$resource_id - PUT /resource/$resource_id - DELETE and also the custom methods like /resource/$resource_id/my_cus