- Golang
- MongoDb
- RabbitMQ
- Postman Api testing tool
Task
1.Create an REST API server in Golang which implements the endpoints to addProduct.
2.Push the code to GitHub and submit the URL of the git repository.
● Create api to insert
Description | HTTP METHODS & URL | REQUEST | Response |
---|---|---|---|
Endpoint for add Product | [POST] /addProduct | { user_id:"int", product_name:"string", product_description:"string", product_images:"[]string", product_price:"int", compressed_product_images: "[]string", created_at:"time", updated_at:"time"} |
200 OK (on success) 400 Bad Request (if request format is invalid) |
● Create 2 Services Producer and Consumer
● Make sure Producer can Consumer both should be connected to RabbitMQ Server
- Locally 🚀
a. Make Sure You have Go installed in your local machine
b. Make Sure You have Mongodb installed in your local machine
c. Make Sure RabbitMQ should be installed in your local Machine
d. Make Sure to Postman API Testing Tool installed ~ For Testing Purpose
Language: Go
Database: MongoDB
MessageQueue: RabbitMQ
API-Testing: PostMan