This API tells really good jokes. They're really good. Trust me.
They're good.
- Open this repository in a codespace
- Run
./bootstrap.sh
to setup your DB and build the project (mvn clean install
) - In the top right of the IDE, click the play button with
Run Server
selected from the drop down next to it. - Open the
test-client.http
file in the root of the project and hit the play button. - Laugh uncontrollably. Or groan--groaning is better.
This API is pri0 and we need your help. Here's what needs to get done:
- Create a devcontainer.json with a default VM size big enough for this project. Use your discretion.
- Add an endpoint to POST a new Dad joke
The following should work with the new POST endpoint:
POST http://localhost:8080/dad/jokes
Content-Type: application/json
{
"question": "Do you know what's funny?",
"answer": "Dad jokes"
}