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

Naming conventions for resource endpoint #165

Closed
theofidry opened this issue Jul 15, 2015 · 3 comments
Closed

Naming conventions for resource endpoint #165

theofidry opened this issue Jul 15, 2015 · 3 comments
Assignees

Comments

@theofidry
Copy link
Contributor

For an entity User, the endpoint will be users, but there is two issues:

  • the plural name of an entity is not configurable, ex the plural of Medium should be Media and not Mediums (well technically speaking both are valid but the meaning differs so it depends of the context)
  • composed name like ContentCluster have either content_cluster or contentcluster as an endpoint, on may prefer another one like content-cluster. I'm saying either because I have both cases although I'm not really sure where it comes from but it's not the point.

Could it be possible to make this configurable? For the composed name maybe a global naming strategy would do although a configuration on a resource basis may be useful too.

@dunglas
Copy link
Member

dunglas commented Jul 15, 2015

Technically it is already configurable using custom operations and custom routes. That being said, it's not developer friendly and any work on that is welcome!

@Simperfit
Copy link
Contributor

ping @theofidry this can be closed no ?

@theofidry
Copy link
Contributor Author

Yep, via #547 :)

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

No branches or pull requests

3 participants