BasicJokes
Jokes
These endpoints allow you to retrieve all jokes, a single joke by its id, or a random joke. The response will be an array of JSON objects if you request all jokes, or a single JSON object if you request a single joke or a random joke.
The Joke model
Prop | Type | Default |
---|---|---|
id | integer | - |
type | string | - |
setup | string | - |
punchline | string | - |
All jokes
GET/jokes
Retrieve all jokes.
Single joke
GET/jokes/<id>
Retrieve a single joke by its id.
Random joke
GET/jokes/random
Retrieve a random joke.