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

Use better naming convention for API endpoints #5

Open
AnshulMalik opened this issue Feb 7, 2018 · 0 comments
Open

Use better naming convention for API endpoints #5

AnshulMalik opened this issue Feb 7, 2018 · 0 comments

Comments

@AnshulMalik
Copy link

We should not use /event/get and /event/add kind of endpoints, instead
GET request on /event and
POST request on /event should be preferred.

https://gist.github.com/alexserver/2fcc26f7e1ebcfc9f6d8#resource-naming-conventions

If you are mixing up HTML and API endpoints, I'd recommend hosting API somewhere like /api.

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

1 participant