Basics of API (Part 1)
Number of APIs: 4
Endpoint URL: https://joke-api-demo.herokuapp.com/
/joke
path for getting the joke
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"
}
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.