Skip to content

W00DmaN/MoneyTransfers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Micronaut

This repository is simple app for transfer money

API

Get health status

GET http://localhost:8080/health

response
0
Create user

POST http://localhost:8080/user

request
{
	"name" : "UserName"
}
response
{
    "id": 1,
    "name": "UserName",
    "cents": 0
}
Get user

GET http://localhost:8080/user/{userId}

response
{
    "id": 1,
    "name": "UserName",
    "cents": 0
}
Get all users

GET http://localhost:8080/user/all

response
[
    {
        "id": 1,
        "name": "UserName",
        "cents": 0
    }
]
Add money for user

PUT http://localhost:8080/user/{userId}/deposit

request
{
	"countCents" : 5000
}
response
{
    "id": 1,
    "name": "UserName",
    "cents": 5000
}
Transfer money

POST http://localhost:8080/transfer/money/from/{uerId}/to/{userId}

request
{
	"summ" : 1
}
response
{
    "id": 1,
    "userFrom": 1,
    "userTo": 2,
    "summ": 1
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published