jonyfs / credit-card-api

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

Home Page:https://creditcardapi.herokuapp.com/api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

About

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

https://creditcardapi.herokuapp.com/api


Languages

Language:Java 100.0%