Luc
Luc

Reputation: 2805

About RESTful and Action

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

Answers (1)

Lukasz Lenart
Lukasz Lenart

Reputation: 1017

Yes you can. You have two options to achieve this:

Upvotes: 1

Related Questions