Skip to content

Commit

Permalink
fix api docs file
Browse files Browse the repository at this point in the history
  • Loading branch information
Horlawhumy-dev committed Jul 4, 2024
1 parent 1ee6fa9 commit 1423699
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api_doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ Auth Endpoints:

Inventory Products Endpoints:

1. POST /api/inventory/products/
1. POST /api/inventory/products/add//
- Description: Create a new product by admin user
- Request Body: name, description, price, quantity, address
- Auth: Bearer token
- Response: id, owner, name, description, price, quantity, created_at, updated_at

2. GET /api/inventory/products
2. GET /api/inventory/products/
- Description: List products for an admin user
- Request Body: nil
- Auth: Bearer token
- Response: list of products

3. PUT /api/inventory/products/:id
3. PUT /api/inventory/products/:id/
- Description: Update product by an admin user
- Request Body: any field(s)
- Auth: Bearer token
- Response: id, owner, name, description, price, quantity, created_at, updated_at

4. DELETE /api/inventory/products/:id
4. DELETE /api/inventory/products/:id/
- Description: Delete product published by an admin user
- Request Body: nil
- Auth: Bearer token
Expand Down

0 comments on commit 1423699

Please sign in to comment.