cURL
curl --request GET \ --url https://api.example.com/categories
{ "200": {}, "500": {}, "id": 123, "name": "<string>" }
Retrieve a list of all product categories
curl -X GET http://localhost:8080/categories \ -H "Content-Type: application/json"
[ { "id": 1, "name": "Electronics" }, { "id": 2, "name": "Clothing" }, { "id": 3, "name": "Books" } ]