Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List Unclaimed Item Requests Query #9

Open
5 tasks
kavinphan opened this issue Jan 21, 2025 · 0 comments
Open
5 tasks

List Unclaimed Item Requests Query #9

kavinphan opened this issue Jan 21, 2025 · 0 comments

Comments

@kavinphan
Copy link
Contributor

kavinphan commented Jan 21, 2025

Description

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
@kavinphan kavinphan changed the title Listen Unallocated Item Requests Query Listen Unclaimed Item Requests Query Jan 21, 2025
@kavinphan kavinphan changed the title Listen Unclaimed Item Requests Query List Unclaimed Item Requests Query Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant