You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a GET route handler at /api/unclaimedItems that returns a list of all UnclaimedItem records.
Success Criteria
If the request does not have a valid session, then GET /api/unclaimedItems returns a 401 status code with JSON body {"message": "Session required"}
GET /api/unclaimedItems returns a 200 status code and all UnclaimedItem records as JSON objects (include id, name, quantity, and expirationDate as an ISO-8601 string)
The route handler is documented with a description of its function, parameters, and responses
There is a test file that covers the success criteria
The text was updated successfully, but these errors were encountered:
kavinphan
changed the title
List Items Query
List Unallocated Items Query
Jan 21, 2025
kavinphan
changed the title
List Unallocated Items Query
List Unclaimed Items Query
Jan 21, 2025
Description
Create a
GET
route handler at/api/unclaimedItems
that returns a list of allUnclaimedItem
records.Success Criteria
GET /api/unclaimedItems
returns a401
status code with JSON body{"message": "Session required"}
GET /api/unclaimedItems
returns a200
status code and allUnclaimedItem
records as JSON objects (includeid
,name
,quantity
, andexpirationDate
as an ISO-8601 string)The text was updated successfully, but these errors were encountered: