all the project layout(service,repository and model) are generated automaticaly using my tool spring-resource
/api/v1/deal
method | payload | response |
---|---|---|
POST |
{id : string? , fromCurrency: String , toCurrency: String , amount: double } |
{id : string? , fromCurrency: String , toCurrency: String , amount: double , deal_timestamp: LocalDateTime } |
/api/v1/deal/batchSave
method | payload | response |
---|---|---|
POST |
{id : string? , fromCurrency: String , toCurrency: String , amount: double }[] |
{id : string? , fromCurrency: String , toCurrency: String , amount: double , deal_timestamp: LocalDateTime }[] |
you can use swagger for api documentation by visiting /swagger-ui/index.html
you can desactivate swagger in case you are deploing to the prof be changing SWAGGER_ACTIVATION
in docker-compose to false
use only one command makefile run-project
and voila! the project is runned
- if you want to run it without docker you can replace the config of the application.yml with your own config
- for better docker optimization i used the multstaging in order to reduce the size of the project image
for managing the project i used github issue you can see all the closed ticket here and the still open one here