Closed rrickgauer closed 3 years ago
Table name: Product_Requests
:
AUTO_INCREMENT
user_id
CURRENT_TIMESTAMP
)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}
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}
Next step: create routes to view received requests.