Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sannjayy/nested-categories-in-django
Implement Nested Categories in a Django Project.
https://github.com/sannjayy/nested-categories-in-django
Last synced: 30 days ago
JSON representation
Implement Nested Categories in a Django Project.
- Host: GitHub
- URL: https://github.com/sannjayy/nested-categories-in-django
- Owner: sannjayy
- Created: 2021-06-26T10:52:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T06:50:28.000Z (almost 3 years ago)
- Last Synced: 2023-03-04T00:12:56.854Z (almost 2 years ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to Implement Nested Categories in a Django Project.
- Categories may have their subcategories, and subcategories may also have subcategories.
## The Task is Building a RESTful APIs from Scratch using scratch using Python
- The Entities are "Category" and "Product".
- The Category can have multiple child categories.
- The Child category can have further child categories.
- The Category can have multiple products and a product can be associated with multiple categories. The Entities must get saved in the database (cloud be MongoDB/PostgreSQL/MySQL) and be retrieved.## Candidate should design a data model and create APIs to -
1. Add a Category.
2. Add Product mapped to a category or categories.
3. Get all categories with all its child categories mapped to it.
- Note: Each category object should look something like { id:1, children: [ ...], ...}
4. Get all products by a category
5. Update product details (name, price etc...)## Code Author
- Sanjay Sikdar
- [email protected]