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:
- Add
POST
Request. - Add
DELETE
Request. - 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.
-
I Love you 3000 GET https://postman-echo.com/get?message="I Love you 3000"
-
Get Joke GET {{Add your URL from the NOTEBOOK}}
-
Add Data POST {{base_url}}/joke/10
-
Update Data PUT {{base_url}}/joke/1
-
Delete Data DELETE {{base_url}}/joke/