Skip to content

Commit 36525f5

Browse files
add missing endpoints in readme
1 parent d579bd6 commit 36525f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
6666
#### Category
6767
- [GET] `/categories` - Get all categories
6868
- [GET] `/category/(int: category_id)` - Get category with category_id
69+
- [GET] `/category/(int: category_id)/subcategories` - Get subcategories within a category_id.
6970
- [DELETE] `/category/(int: category_id)` - Delete category with category_id
7071

7172
- [POST] `/category/create` - Create a new category
@@ -89,6 +90,7 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
8990
#### Subcategory
9091
- [GET] `/subcategories` - Get all subcategories
9192
- [GET] `/subcategory/(int: subcategory_id)` - Get subcategory with subcategory_id
93+
- [GET] `/subcategory/(int: subcategory_id)/categories` - Get categories related to subcategory_id
9294
- [DELETE] `/subcategory/(int: subcategory_id)` - Delete subcategory with subcategory_id
9395

9496
- [POST] `/subcategory/create` - Create a new subcategory
@@ -115,6 +117,7 @@ Test the API using Swagger UI (`/` route), Postman, cURL or your preferred HTTP
115117
#### Product
116118
- [GET] `/products` - Get all products
117119
- [GET] `/product/(int: product_id)` - Get product with product_id
120+
- [GET] `/product/(int: product_id)/subcategories` - Get subcategories related to product_id
118121
- [DELETE] `/product/(int: product_id)` - Delete product with product_id
119122

120123
- [POST] `/product/create` - Create a new product

0 commit comments

Comments
 (0)