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/unclaimedItemRequests that returns a list of all UnclaimedItemRequest records.
Success Criteria
If the request does not have a valid session, then GET /unclaimedItemRequests/items returns a 401 status code with JSON body {"message": "Session required"}
If the request session user type is PARTNER, then GET /api/unclaimedItemRequests returns a 200 status code and all UnclaimedItemRequest records owned by the user as JSON objects
If the request session user type is STAFF, ADMIN, or SUPER_ADMIN, then GET /api/unclaimedItemRequests returns a 200 status code and all UnclaimedItemRequest as JSON objects
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
Listen Unallocated Item Requests Query
Listen Unclaimed Item Requests Query
Jan 21, 2025
kavinphan
changed the title
Listen Unclaimed Item Requests Query
List Unclaimed Item Requests Query
Jan 21, 2025
Description
Create a
GET
route handler at/api/unclaimedItemRequests
that returns a list of allUnclaimedItemRequest
records.Success Criteria
GET /unclaimedItemRequests/items
returns a401
status code with JSON body{"message": "Session required"}
PARTNER
, thenGET /api/unclaimedItemRequests
returns a200
status code and allUnclaimedItemRequest
records owned by the user as JSON objectsSTAFF
,ADMIN
, orSUPER_ADMIN
, thenGET /api/unclaimedItemRequests
returns a200
status code and allUnclaimedItemRequest
as JSON objectsThe text was updated successfully, but these errors were encountered: