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
@@ -64,7 +64,7 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
64
64
65
65
#### Fetch products using name, category, subcategory
66
66
-[GET]`/product/<name: string>` - Get product with name: `name` <br/><br/>
67
-
-[GET]`/subcategory/<subcategory_id: int>/products?page=<page_no>` - Get product with within subcategory `subcategory`. Returns `page_no` of the paginated results. <br/><br/>
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/>
70
70
@@ -124,11 +124,11 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
124
124
125
125
#### Subcategory
126
126
-[GET]`/subcategories` - Get all subcategories
127
-
-[GET]`/subcategory/(int: subcategory_id)` - Get subcategory with subcategory_id
128
-
-[GET]`/subcategory/(int: subcategory_id)/categories` - Get categories related to subcategory_id
129
-
-[DELETE]`/subcategory/(int: subcategory_id)` (Protected) - Delete subcategory with subcategory_id
127
+
-[GET]`/subcategories/(int: subcategory_id)` - Get subcategory with subcategory_id
128
+
-[GET]`/subcategories/(int: subcategory_id)/categories` - Get categories related to subcategory_id
129
+
-[DELETE]`/subcategories/(int: subcategory_id)` (Protected) - Delete subcategory with subcategory_id
130
130
131
-
-[POST]`/subcategory/create` (Protected) - Create a new subcategory
131
+
-[POST]`/subcategories` (Protected) - Create a new subcategory
132
132
```
133
133
{
134
134
"name": "name",
@@ -137,7 +137,7 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
137
137
}
138
138
```
139
139
140
-
-[PUT]`/subcategory/(int: subcategory_id)/update` (Protected) - Update subcategory with subcategory_id
140
+
-[PUT]`/subcategories/(int: subcategory_id)` (Protected) - Update subcategory with subcategory_id
0 commit comments