Skip to content

noelnole/spring-boot-rest-swagger-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accounts

Intro

This project was born with the aim of providing a sample microservice application with TDD.

  • This microservice will store client accounts in a mysql DB and have swagger as API Interface.

API overview

  • POST invocation (body example) to /accounts:

{
    "accountId": "010340430A",
    "alias": "yourself",
    "amount": 123,
    "number": "pepe",
    "currency":"CAD",
    "type":"outgoings"
  }
  • GET invocation ( Response body example) to /accounts/010340430A:

{
    "accountId": "010340430A",
    "alias": "yourself",
    "amount": 123,
    "number": "pepe",
    "currency":"CAD",
    "type":"outgoings"
  }

Motivation

Account application is intended to demonstrate the basics concepts of a microservices architecture.

Build this microservice

Build project

gradle clean install

Run on local environment

gradle bootRun
java -jar account.jar

About

Spring Boot Sample with Swagger and TDD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages