Skip to content

frmaia/api-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use:

1 - Build and run service:

Configure application parameters

Please, refer to the application.properties file if you eventually want to change default values for this application.

Build:

mvn clean package

Just run automated tests

mvn test

Run service using java

java -jar {{path-to-the-builded-jar}}

2 - Consume the API's

POST /transactions (example)

timestamp=$(date +"%s"000);echo $timestamp; curl -X POST -H "Content-Type:application/json" -d "{\"amount\":10, \"timestamp\":${timestamp}}" localhost:8080/transactions

GET /statistics (example)

curl localhost:8080/statistics

About

A small project written using spring-boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages