Math Expression API is a set of micro-services API responsible to perform math operations.
- Service Registration and Discovery
- RESTful APIs
- i18n added! You can use the header Accept-Language with either
en
orpt
to see the error messages in these languages.
Math Expression API was developed using the technologies bellow:
- Java - Java 12
- Spring Boot - Spring Boot 2
- Eureka - Service Registration and Discovery
- Lombok - Lombok
- ModelMapper - Model Mapper
- Docker - Docker
- Docker-Compose - Docker Compose
- Gradle - Gradle
- JUnit5 - JUnit 5
- Mockito - Mockito
- Postman - Postman
Math Expression API need to be cloned on GitHub.
$ git clone https://github.com/vfcarmo/bloomberg.git
$ cd bloomberg
Test the end-to-end result by starting the eureka-server first, next starting the calculator-api and then, once those have loaded, starting the math-expression.
To make this task easy, you should execute the 'build-docker.sh'.
First you should make this file executable:
$ chmod +x build-docker.sh
Then you can run this file with sudo (its necessary because the docker-compose command require it):
$ sudo ./build-docker.sh
You should wait for all services be available, after that you can make the requests for test.
In this project, the math-expression gets the result of math operation from calculator-api. We use eureka-server, which implement service registration and discovery, to be possible one service call the other one.
You can test the Math Expression API using Postman and importing the collection (MathExpression.postman_collection.json) located in the bloomberg directory.
- Delivery in a Docker Orchestration environment
MIT
Free Software, Hell Yeah!