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 <devasakayam...@gmail.com>:
> 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/organization_id,
> whereas, to get an employee of an organization we need to map it as a
> sub-resource like /organizations/organization_id/employees/employee_id
> rather than just making it as /employees/employee_id.
>
> Thanks & Regards,
> Deva.
>
>
>
> --
> 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-mail: user-h...@struts.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to