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

Add mapFormat=false to resources() routing #899

Closed
neokoenig opened this issue Oct 23, 2018 · 5 comments
Closed

Add mapFormat=false to resources() routing #899

neokoenig opened this issue Oct 23, 2018 · 5 comments
Labels
Milestone

Comments

@neokoenig
Copy link
Member

@neokoenig neokoenig commented Oct 23, 2018

At the moment if you do resources("user") you'll get all the RESTful routes, plus the users.[format] version: a lot of people don't like/use the [format] part, so would be good to have a flag to remove that either per route, or maybe per application.

i.e
.resources(name="bookings", format=false)

This would halve the number of routes, making the route list easier to browse, plus would probably improve performance as the routes array will be slimmer.

@chapmandu

This comment has been minimized.

Copy link
Member

@chapmandu chapmandu commented Oct 23, 2018

+1000

@dbelanger

This comment has been minimized.

Copy link
Member

@dbelanger dbelanger commented Oct 23, 2018

@neokoenig neokoenig closed this in c48ad2d Oct 29, 2018
@neokoenig neokoenig changed the title Add format=false to resources() routing Add mapFormat=false to resources() routing Oct 29, 2018
@neokoenig neokoenig added this to the 2.1.0 milestone Oct 29, 2018
@chapmandu

This comment has been minimized.

Copy link
Member

@chapmandu chapmandu commented Mar 13, 2019

Is there a way to set this at an application level?

@neokoenig

This comment has been minimized.

Copy link
Member Author

@neokoenig neokoenig commented Mar 14, 2019

Not currently, but I think that wouldn't be too hard to implement

@neokoenig neokoenig reopened this Mar 14, 2019
@neokoenig neokoenig closed this in a380e31 Mar 14, 2019
@neokoenig neokoenig added the docs label Mar 14, 2019
@neokoenig

This comment has been minimized.

Copy link
Member Author

@neokoenig neokoenig commented Mar 14, 2019

Re-opening for docs

@neokoenig neokoenig reopened this Mar 14, 2019
@neokoenig neokoenig closed this Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.