Skip to content
New issue

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

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

Already on GitHub? # to your account

Davidgu/list items request query #34

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

shaply
Copy link
Collaborator

@shaply shaply commented Feb 10, 2025

Description

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

  • 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

Checklist

  • The ticket is mentioned above
  • The changes fulfill the success criteria of the ticket
  • The changes were self-reviewed
  • A review was requested

Copy link

netlify bot commented Feb 10, 2025

Deploy Preview for hope-for-haiti ready!

Name Link
🔨 Latest commit 7c68ab8
🔍 Latest deploy log https://app.netlify.com/sites/hope-for-haiti/deploys/67aa55542b53010008b84d51
😎 Deploy Preview https://deploy-preview-34--hope-for-haiti.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant