Basics of API (Part 1)
Number of APIs: 1
Endpoint URL: https://joke-api-demo.herokuapp.com/
/joke path for getting the joke
Todo:
- Add
POSTRequest. - Add
DELETERequest. - Add
PUTRequest.
The Body for POST and PUT is like this
json
{
"id": "1",
"author": "Ali Mustufa",
"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
Note: This is a beginner-friendly API development tutorial and doesn't follow best practices.
- Get Joke GET {{Add the URL here}}