Skip to content

Sample with TDD, Spring Boot, Embedded MongoDB, HATEOAS and Spring REST Docs

Notifications You must be signed in to change notification settings

jonyfs/credit-card-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

The Credit Card API

Model Class Diagram

Model Class Diagram

Api Class Diagram

Api Class Diagram

Api Sequence Diagram - Do Payment

Api Sequence Diagram - Do Payment

Api Sequence Diagram - Get 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

See application.properties

Tools

Spring Boot

SPRING INITIALIZR

Spring REST Docs

MongoDB

embedmongo-spring

de.flapdoodle.embed.mongo

AsciiDoctor

AsciiDoctor file

See credit-card-api.adoc

API Document Sample

See credit-card-api.pdf

Continuous Delivery

Codeship Status for jonyfs/credit-card-api

How test?

Run mvn package spring-boot:run 

How access?