Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating custom actions in controller #114

Open
mabuzagu opened this issue Oct 10, 2013 · 1 comment
Open

Creating custom actions in controller #114

mabuzagu opened this issue Oct 10, 2013 · 1 comment

Comments

@mabuzagu
Copy link

Is there a way to create custom actions aside from the generic CRUD actions. I would like to have a route like e.g. /cities/5/population or cities/5/currentusers ... something like that. I have it working nice for the collections and returning single items. But REST is about more than that right? Thoughts?

@rodsouto
Copy link

I think you are looking for child resources => https://phlyrestfully.readthedocs.org/en/latest/ref/child-resources.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants