This document explains the available endpoints of our Dad Jokes API.
Returns a random dad joke in JSON format.
{ "author": "John Doe", "joke_text": "I'm reading a book on anti-gravity. It's impossible to put down!" }
Submits a new dad joke. This endpoint expects a JSON object with an "author" and "joke_text".
{ "author": "Jane Doe", "joke_text": "Why don't scientists trust atoms? Because they make up everything." }
Make sure to set Content-Type: application/json
in your request header.