The video for this lesson is currently being updated, please read the transcript instead.

API responses

The last major aspect of our API is the success and error responses.

Documenting these will make it easier for consumer to parse the response and create user-facing success and error messages.

So far we've only been working on item endpoints. Let's now go to our users route file and document the POST /users endpoint.

POST /users

To view the complete lesson you'll need to login or join this course.


Click to load comments...