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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,8 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
65
65
#### Fetch products using name, category, subcategory
66
66
-[GET]`/product/<name: string>` - Get product with name: `name` <br/><br/>
67
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/>
68
-
-[GET]`/category/<category_id: int>/products` - Get product with within category `category`. Returns first page of the paginated results. <br/><br/>
69
-
-[GET]`/category/<category_id: int>/products?page=<page_no>` - Get product with within category `category`. Returns `page_no` of the paginated results. <br/><br/>
68
+
-[GET]`/categories/<category_id: int>/products` - Get product with within category `category`. Returns first page of the paginated results. <br/><br/>
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
71
71
72
72
#### Authorization
@@ -100,19 +100,19 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
100
100
101
101
#### Category
102
102
-[GET]`/categories` - Get all categories
103
-
-[GET]`/category/(int: category_id)` - Get category with category_id
104
-
-[GET]`/category/(int: category_id)/subcategories` - Get subcategories within a category_id.
105
-
-[DELETE]`/category/(int: category_id)` (Protected) - Delete category with category_id
103
+
-[GET]`/categories/(int: category_id)` - Get category with category_id
104
+
-[GET]`/categories/(int: category_id)/subcategories` - Get subcategories within a category_id.
105
+
-[DELETE]`/categories/(int: category_id)` (Protected) - Delete category with category_id
106
106
107
-
-[POST]`/category/create` (Protected) - Create a new category
107
+
-[POST]`/categories` (Protected) - Create a new category
108
108
```
109
109
{
110
110
"name": "name",
111
111
"subcategories": [<subcategory ids>] //optional
112
112
}
113
113
```
114
114
115
-
-[PUT]`/category/(int: category_id)/update` (Protected) - Update category with category_id
115
+
-[PUT]`/categories/(int: category_id)` (Protected) - Update category with category_id
0 commit comments