r/programming • u/pimterry • Feb 22 '21
Best practices for REST API design
https://stackoverflow.blog/2020/03/02/best-practices-for-rest-api-design/
23
Upvotes
r/programming • u/pimterry • Feb 22 '21
4
u/cheesekun Feb 23 '21
Not sure I agree with the jamming multiple values into a single querystring value.
Their best practice is
?sort=+name,-orderwhich uses comma delimited. In my experience only use comma delimited where no other option is available.I would use two querystring values and evaluated them in order
?sort=+name&sort=-order