cURL
curl --request GET \ --url https://api.example.com/api/lockers
{ "data": [ { "lockerNo": "<string>", "employeeNumber": "<string>", "size": 123, "location": "<string>", "isEmpty": true } ] }
Retrieve all lockers in the system, ordered by locker number
GET /api/lockers
Show Locker Object
curl -X GET https://api.example.com/api/lockers \ -H "Content-Type: application/json"
[ { "lockerNo": "A001", "employeeNumber": "EMP12345", "size": 2, "location": "Building A - Floor 1", "isEmpty": false }, { "lockerNo": "A002", "employeeNumber": "", "size": 1, "location": "Building A - Floor 1", "isEmpty": true }, { "lockerNo": "B001", "employeeNumber": "EMP67890", "size": 3, "location": "Building B - Floor 2", "isEmpty": false } ]