Reputation: 2805
I don't know how to set correct title.
I would like to do like this:
/api/users/{user_id}/ <-> UsersController
users is an action and {user_id} is parameter
/api/users/{user_id}/list
/list -> list is method.
But I would like to use /list is another action in users action
=> I can use
/api/users/{user_id}/list/{list_id}/myMethod
Can I do it with struts2 restful?
Upvotes: 1
Views: 157
Reputation: 1017
Yes you can. You have two options to achieve this:
Upvotes: 1