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 Item's Requests Query #28

Open
4 of 5 tasks
kavinphan opened this issue Feb 4, 2025 · 0 comments
Open
4 of 5 tasks

List Item's Requests Query #28

kavinphan opened this issue Feb 4, 2025 · 0 comments
Assignees
Labels

Comments

@kavinphan
Copy link
Contributor

kavinphan commented Feb 4, 2025

Description

Create a GET route handler at /api/items/[itemId]/unallocatedItemRequests that returns all UnallocatedItemRequest records that point to the specified item.

Success Criteria

  • 401 if no session
  • 403 if not STAFF, ADMIN, or SUPER_ADMIN
  • GET /api/items/[unallocatedItemId]/unallocatedItemRequests returns all UnallocatedItemRequest records that point to the specified item
  • 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 Partners Requesting Unallocated Item Query List Unallocated Item Requests Query Feb 4, 2025
@kavinphan kavinphan changed the title List Unallocated Item Requests Query List Unallocated Item's Requests Query Feb 4, 2025
@kavinphan kavinphan changed the title List Unallocated Item's Requests Query List Item's Requests Query Feb 5, 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