MichiBerger / express-exercise

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🤡 Express Jokes Exercise Template

Click on "Use this template", clone the repo locally and solve the exercises in routes/jokes.js.

Remember to run npm i.

Use node index.js to start the server.

Exercise 1

Create a GET /joke route, that returns all jokes.
Test it with the REST Client VS Code Extension.

Exercise 2

Create a GET /joke/:id route, that returns the joke for the given id.
Test it with REST Client.

Exercise 3

Create a POST /joke route, that adds a new joke to the array.
Test it with REST Client.

Exercise 4

Create a PATCH /joke/:id route, that updates the joke for the given id.
Test it with REST Client.

Exercise 5

Create a DELETE /joke/:id route, that deletes the joke for the given id.
Test it with REST Client.

About


Languages

Language:JavaScript 98.9%Language:Shell 1.1%