You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
63
63
### Endpoints
64
64
65
65
#### Fetch products using name, category, subcategory
66
-
-[GET]`/product/<name: string>` - Get product with name: `name` <br/><br/>
66
+
-[GET]`/products?name=<name: string>` - Get product with name: `name` <br/><br/>
67
67
-[GET]`/subcategories/<subcategory_id: int>/products?page=<page_no>` - Get product with within subcategory `subcategory`. Returns `page_no` of the paginated results. <br/><br/>
68
68
-[GET]`/categories/<category_id: int>/products` - Get product with within category `category`. Returns first page of the paginated results. <br/><br/>
69
69
-[GET]`/categories/<category_id: int>/products?page=<page_no>` - Get product with within category `category`. Returns `page_no` of the paginated results. <br/><br/>
@@ -151,11 +151,11 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
151
151
152
152
#### Product
153
153
-[GET]`/products` - Get all products
154
-
-[GET]`/product/(int: product_id)` - Get product with product_id
155
-
-[GET]`/product/(int: product_id)/subcategories` - Get subcategories related to product_id
156
-
-[DELETE]`/product/(int: product_id)` (Protected) - Delete product with product_id
154
+
-[GET]`/products/(int: product_id)` - Get product with product_id
155
+
-[GET]`/products/(int: product_id)/subcategories` - Get subcategories related to product_id
156
+
-[DELETE]`/products/(int: product_id)` (Protected) - Delete product with product_id
157
157
158
-
-[POST]`/product/create` (Protected) - Create a new product
158
+
-[POST]`/products` (Protected) - Create a new product
159
159
```
160
160
{
161
161
"name": "name",
@@ -164,7 +164,7 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
164
164
}
165
165
```
166
166
167
-
-[PUT]`/product/(int: product_id)/update` (Protected) - Update product with product_id
167
+
-[PUT]`/products/(int: product_id)` (Protected) - Update product with product_id
0 commit comments