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 Items Query #6

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

List Unclaimed Items Query #6

kavinphan opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels

Comments

@kavinphan
Copy link
Contributor

kavinphan commented Jan 21, 2025

Description

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

No branches or pull requests

2 participants