Ellaboreted by: Gustavo Roversi
This project handle the subscription process of Adidas newsletter. Basically, it does 4 process:
- Create a subscription
- List a subscription by id
- List all subscriptions
- Cancel a subscription
- MongoDB
- Swagger: /adidas/swagger-ui.html#
- Actuator: /adidas/actuator/health
- Traceability and Observability
- In-memory cache
- Docker compatible
- Azure compatible
#Endpoints
- POST: /adidas/v1/subscription - Create a subscription
- GET: /adidas/v1/subscription/{subscriptionID} - Get a subscription by Id
- GET: /adidas/v1/subscription - List all subscriptions
- DELETE: /adidas/v1/subscription - Logically delete a subscription
PS: All endpoints needs a JWS to authorize it access. These JWS are generated by the adidas-backend-for-frontend-mcsv service. Please, read the service documentation.
For more details, see the swagger documentation. (On the repo is also included a Postman collection).
#Dependencies This project needs other projects do work properly. Please download and run the other projects:
- adidas-backend-for-frontend-mcsv - See project
- adidas-email-server-mcsv - See project
For more doubts, reade README section of these projects.
- To start application locally, set JVM environment variable and run Docker compose for mongoDb services.
spring.profiles.active=local
- As this service is a Cloud Native application, for production environments, just let the application run on default.
- ArchUnit tests
- Integration tests
- Unit tests
mvn test
docker-compose up
This project brings compatibility with kubernetes environment through GitHub actions. Take a look at the .git folder and the manifests' folder.
It's necessary to adjust variables to your environment.
- Email: [email protected]
- Tel: +55 11 98555-6356