15.1: Test Getting Notes in Postman

  1. Run the API project.

  2. Open Postman.

  3. Click on the + to create new request.

  4. Set it to GET.

  5. Make sure the URL is the same as the URL running the API.

  6. At the end of the URL add /api/note. (or whatever your api endpoint is)

  7. Click on the Headers tab.

  8. Add a key called Authorization.

  9. Add a value starting with Bearer.

  10. Go to the first request tab and copy the token from that previous request without the quotation marks.

  11. Type a space after Bearer and then paste the token. (PLEASE Note that the image below has an error. It should say GET and not POST.) Also notice that the word Bearer is there before the token.

    Notes Request

  12. Press Send.

  13. You should see a list of notes(or whatever) for your particular account (make sure the account you are using has some notes)

    Notes

  14. Stop the app

Next, we'll add the Http methods in the NoteController.

Last updated