Git Product home page Git Product logo

wishlist-support's Introduction

Wishlist Support API Microservice

This microservice is responsible for maintaining the necessary information for the functioning of the Wishlist API microservice. It is built using Java 17, Spring Boot, Gradle and MongoDB, and is designed to be deployed using Kubernetes.

Requirements

To run this microservice, you will need the following:

Getting Started

To deploy and run the microservice in your Kubernetes, you will need to following these steps:

  1. Apply the ConfigMap Mongo located at ./deploy/kubernetes
     kubectl apply -f ./deploy/kubernetes/mongo-wl-sup-config.yml
  2. Apply the Secret Mongo located at ./deploy/kubernetes
     kubectl apply -f ./deploy/kubernetes/mongo-wl-sup-secret.yml
  3. Apply the Deployment Mongo located at ./deploy/kubernetes
    kubectl apply -f ./deploy/kubernetes/mongo-wl-sup-deployment.yml
  4. Apply the Deployment Api located at ./deploy/kubernetes
    kubectl apply -f ./deploy/kubernetes/deployment.yml

Endpoints

One of the options is to use the Swagger that is configured in the application at path /swagger-ui/index.html

Swagger

The following endpoints are available in the microservice:

Client

  • POST /api/v1/clients - Create a new client.
curl --location --request POST 'http://<applicationUrl>:<applicationPort>/api/v1/clients' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cpf": "164.565.990-91",
    "name": "Jonh"
}'
  • DELETE /api/v1/clients/{clientId} - Remove an informed clientId.
curl --location --request DELETE 'http://<applicationUrl>:<applicationPort>/api/v1/clients/<clientId>'
  • GET /api/v1/clients/{clientId} - Retrieve an informed clientId.
curl --location --request GET 'http://<applicationUrl>:<applicationPort>/api/v1/clients/<clientId>'
  • GET /api/v1/clients/{clientId}/exists - Checks if the informed client exists.
curl --location --request GET 'http://<applicationUrl>:<applicationPort>/api/v1/clients/<clientId>/exists'
  • GET /api/v1/clients - Retrieve all clients.
curl --location --request GET 'http://<applicationUrl>:<applicationPort>/api/v1/clients'

Product

  • POST /api/v1/clients - Create a new product.
curl --location --request POST 'http://<applicationUrl>:<applicationPort>/api/v1/products' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "1",
    "description": "Description product one",
    "thumbnail": "url image",
    "price": 20,
    "category": "category product one",
    "brand": "brand product one",
    "additionalInfo": "more info about product one"
}'
  • DELETE /api/v1/products/{productId} - Remove an informed product.
curl --location --request DELETE 'http://<applicationUrl>:<applicationPort>/api/v1/products/<productId>'
  • GET /api/v1/products/{productId} - Retrieve an informed productId.
curl --location --request GET 'http://<applicationUrl>:<applicationPort>/api/v1/products/<productId>'
  • GET /api/v1/products - Retrieve all products.
curl --location --request GET 'http://<applicationUrl>:<applicationPort>/api/v1/products'

TODO

  • As a future implementation, we are going to implement the communication of this microservice with a messaging structure. with the intention of ensuring the integrity of product and customer data.

wishlist-support's People

Contributors

raytotti avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.