/categoriza

This project involves building an API with Spring Boot to manage a product catalog within a marketplace application.

Primary LanguageJava

Categoriza

Java Spring MongoDB AWS Licence

This project is an API built using Java, Java Spring and Mongo DB

Installation

  1. Clone the repository:
https://github.com/giovxna/categoriza.git

Usage

  1. Start the application with Maven
  2. The API will be accessible at http://localhost:8080

API Endpoints

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"
}

Features

  • AWS SQS for the catalog change notifications.
  • AWS S3 for storing the catalog JSON.