struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yong Kang Guo <>
Subject [Question] [struts2-rest-plugin] How shall I handle GET request /orders/{id}/items?
Date Wed, 07 Sep 2016 09:45:40 GMT
Hi experts,

I'm learning to use the struts2-rest-plugin. In the sample project 'rest-showcase', I see
a good example where I can GET /orders and /orders/1. But how to implement navigation from
one resource to another? E.g., Let's say an Order has many Items. Then how to implement the
proper handler to request:

GET /orders/{id}/items, and

GET /orders/{id}/items/{item_id} ?

And how to handle Create/Update/Delete requests to the navigation path, e.g.

POST /orders/{id}/items

to create a new item under the order?

Thanks and Best Regards,


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message