The purpose of this project is to build a demo service using domain-driven design and hexagonal architecture. The topic turns around prices linked to timeframes and the query of them.
- Java 17
- Docker
- Clone the repository
git clone [email protected]:sergiocmgit/price-retriever-hexagonal.git
- Build the image
./gradlew build
- Build the docker image
docker build -t price-retriever-hexagonal .
- Run the application
docker run -p 8080:8080 price-retriever-hexagonal
- Call the endpoint
curl -X GET "http://localhost:8080/api/prices?productId=35455&brandId=1&appliedAt=2020-06-14T10%3A00%3A00Z"
Check the documentation when the application is running by accessing the following:
- Swagger documentation: Swagger UI
- OpenAPI documentation in json format: OpenAPI in JSON
- OpenAPI documentation in yaml format: OpenAPI in YAML