Credit Card API Example
Example with Integration Tests, Spring Boot, Embedded MongoDB, HATEOAS, Spring REST Docs and AsciiDoctor
The Credit Card API uses CodeShip and Heroku for Continuous Delivery.
Codeship is a fast and secure hosted Continuous Delivery platform that scales with your needs.
Heroku is a cloud application platform that offers a new way of building and deploying web apps.
Model Class Diagram
Api Class Diagram
Api Sequence Diagram - Do Payment
Api Sequence Diagram - Get Payment
MongoDB Embebbed Config
- Database: credit-card
- Collections: payments
- url: localhost
- port: 27057
Obs.: I used MongoDB Compass client to access data in MongoDB.
Spring Boot Config
Tools
AsciiDoctor file
API Document Sample
Continuous Delivery
How test?
Run mvn package spring-boot:run
How access?
-
your local environment: http://localhost:8080/api