Rest API & Expres handling various requets #5
petrvecera
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Get all POSTs for users. The route can have optional parameter published.
So we need to handle 3 states:
http://localhost:3000/users/1/posts?published=true
http://localhost:3000/users/1/posts?published=false
http://localhost:3000/users/1/posts
Ideal error handling:
Create user with POST request
Beta Was this translation helpful? Give feedback.
All reactions