Review Glossary FR

Size

Eyes

Finish a part in any dojo to unlock the next eyes.

Day 31 10 min

curl

1 / 13 · ≈ 9 min left

The problem

You just deployed the orders service and it listens on http://localhost:8080. The browser shows a blank page, so you test each endpoint from the terminal with curl. curl exits with 0 even when the server answers 404, unless you ask it to fail.

The endpoints: /health returns ok. /docs answers 301 with Location: /docs/. /export/orders.csv returns a CSV file. GET /api/orders needs the header Authorization: Bearer abc123. POST /api/orders creates an order from JSON. /api/orders/42 accepts POST and DELETE. /missing returns 404. Type every URL in full, with http://.