Our new endpoints are:
- /api
- /api/random
- /api/ten
- /api/[category name]/random
- /api/[category name]/ten
- /api/joke/[joke number]
- /status
NOTE: Legacy routes have your own endpoints listed below ↓:
- / - root
- /ping - returns the word pong
- /random_joke - returns one random joke
- /random_ten - returns an array of 10 random jokes
- /jokes/random - returns one random joke
- /jokes/ten - returns an array of 10 random jokes
- /jokes/[type]/random - returns one random joke of that type
- /jokes/[type]/ten - returns ten random jokes of that type
Our current available categories are:
- general
- knock-knock
- programming
You have this page as root at endpoint: /api .
You can programmatically check all jokes and categories at /status endpoint.
You can access legacy routes (original Joke Api) normally. That means you can use the same structure built previously on your application.
Disclaimer: This project is directly "inspired" on "Original Joke API" but claims easier usability.
Feel free to contact-me if you have any issue or message related with this project.
Original joke api repo: https://github.com/15Dkatz/official_joke_api
Nova joke api repo: https://github.com/marlonveiga-santos/nova_joke_api