https://elena-kolevska.github.io/redis-product-catalogue-service
A simple REST API providing a way to manage and browse products
This project is done as a simple exercise for data modelling with Redis in Go
Image
- Id : Number
- Value : Binary
- Product: Product (1)
Product
- Id : Number
- Name : String
- Description: String
- Vendor : String
- Price : Number
- Currency : String
- MainCategory : Category (1)
- Images : Image (0..n)
Category
- Id : Number
- Name : String
- Products : Product (0..n)
You can find the API documentation here.
It's written using the OpenAPI 3 specification, with the yaml
files living in the docs
folder.
To export the documentation to a self-contained, zero-dependencies html file, you can use the ReDoc library. Just run the following command:
redoc-cli bundle docs/index.yaml --output docs/index.html --title "Redis Product Catalogue Service Documentation" --options.theme.colors.primary.main=#D82C20
When setting up the program rename the conf_example.json
file to conf.json
and populate it with your values.
Execute tests the standard way, by running
go test
- Implement authentication
- More complete pagination
- Finish tests for the Product model
- Create a Category Index endpoint