Building an API

Number of APIs: 5

Making our Own API and testing it here: 1. Python Notebook {Fork it} 2. NodeJs Notebook {Work in progress}

Run the Python Notebook using Colab to get the temporary ngrok URL and change the variable with the URL you get after running the 2nd cell on the notebook.

Remix this Glitch Example: {Work in progress} Todo:

  1. Add POST Request.
  2. Add DELETE Request.
  3. Add PUT Request.

The Body for POST and PUT is like this json { "id": "1", "author": "Ali Mustufa", "joke": "Bugs are features", "source": "Ali Mustufa" }

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

  1. I Love you 3000 GET https://postman-echo.com/get?message="I Love you 3000"

  2. Get Joke GET {{Add your URL from the NOTEBOOK}}

  3. Add Data POST {{base_url}}/joke/10

  4. Update Data PUT {{base_url}}/joke/1

  5. Delete Data DELETE {{base_url}}/joke/