17.1: Test GetById
Last updated
Last updated
GetNoteById
methodIn this section, we will test the endpoint that gets a specific note by id.
Make sure your API is running and open Postman
Add the API endpoint to the end of the URL api/Note/1
The # at the end must be the id of a note that is in the database for the specific user
Choose GET
We also need our token
Remember that Http is stateless, the server does not remember our last request
We need the token as a kind of hand stamp to let us have authenticated access
Make sure you have a token copied after the word Bearer in the values column
Click Send and you should get 200 OK
Next, we'll test the Post
method.