wmiys / api.alpha

Api for the the backend
0 stars 0 forks source link

[requests]: create routes #137

Closed rrickgauer closed 3 years ago

rrickgauer commented 3 years ago
rrickgauer commented 3 years ago

Database Table

Table name: Product_Requests:

rrickgauer commented 3 years ago

Renter Requests

View all requests a user (renter) submitted:

GET: /requests/submitted

Create a new product request (as a renter):

POST: /requests/submitted

View a single request a user (renter) submitted:

/requests/submitted/:request_id

View all requests a user (renter) submitted for a specified status:

/requests/submitted/{pending,accepted,denied,expired}

Lender Requests

View all requests a user (lender) received:

/requests/received

View a single received request (lender):

/requests/received/:request_id

View all received requests (as a lender) with a specified status:

/requests/received/{pending,accepted,denied,expired}
rrickgauer commented 3 years ago

Next step: create routes to view received requests.