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

obey REST principle #2

Open
tcz001 opened this issue Jul 9, 2017 · 0 comments
Open

obey REST principle #2

tcz001 opened this issue Jul 9, 2017 · 0 comments

Comments

@tcz001
Copy link
Member

tcz001 commented Jul 9, 2017

Some apis in BFF are not following the principle of REST,
For example, http://localhost:8090/pets/detail?id={id}
Which stands for a collection in REST, but has an Id actually behave as a primary key which is not good to be a query param (or filter). Instead of this, we should use http://localhost:8090/pets/{id}.

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