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,

Guo

Reply via email to