Basics of API (with auth)

Number of APIs: 1

We are using Basic Auth here (username and password)

End Point: https://joke-auth.herokuapp.com/

Resource Path:

base_url: {{url from notebook}}

base_url/joke: Get Jokes.

base_url/adjoke: Add, Delete, and Update joke.

Todo:

  1. Add Variable on Collection Level for base_url, Username, and Password.
  2. Add POST Request.
  3. Add DELETE Request.
  4. Add PUT Request.

The Body for POST and PUT is like this JSON { "id":10, "author": "NA", "joke": "Bugs are features", "source": "Ali Mustufa" } Include id in the URL like /joke/10 where 10 is the id of the joke for DELETE Request

Remember: You'll need to authenticate yourself for adding, updating, and deleting the jokes from the server.

Note: This is a beginner-friendly API development tutorial and doesn't follow best practices.

  1. Get Data GET {{Add your URL from the NOTEBOOK}}/joke