This project is an API built using Java, Java Spring and Mongo DB
- Clone the repository:
https://github.com/giovxna/categoriza.git
- Start the application with Maven
- The API will be accessible at http://localhost:8080
The API provides the following endpoints:
API PRODUCT
POST /api/product - Create a new product
GET /api/product - Retrieve all products
PUT /api/product/{id} - Updates a product
DELETE /api/product/{id} - Delete a product
BODY
{
"title": "category",
"description": "",
"ownerId": "4444444",
"categoryId": "659d558b0304df732ddd4587",
"price": 10000
}
API CATEGORY
POST /api/category - Create a new category
GET /api/category - Retrieve all categories
PUT /api/category/{id} - Updates a category
DELETE /api/category/{id} - Delete a category
BODY
{
"id": "666416956d24ac12a3749d70",
"title": "product",
"description": "",
"ownerId": "2"
}
- AWS SQS for the catalog change notifications.
- AWS S3 for storing the catalog JSON.