The purpose of this project is to provide mock data for Danske Bank's data combiner project. Currently, it provides two mock microservices: REST-based balance-server-mock and GraphQL-based customer-details-server-mock.
If you want to use this project with Docker, you need to use docker compose.
To spin-off the project for the first time, just run:
$ docker-compose up --build
After the first run, it is not necessary to build the docker images anymore, unless they are changed. If they are unchanged, just type:
$ docker-compose up
By default, this will start the reverse-proxy
on http://localhost:8080. Please refer to reverse-proxy documentation for information on URL routes and how to change the default behavior, if you wish.
Since an important goal of this project is to emulate heavy-loaded APIs, there are mechanisms to control the delay in the response time for each provided API. Each API provides a way to send data as soon as possible (ASAP), or in a delayed fashion. The strategy to invoke the endpoints and receive the response with a delay is different for each API.
The delayed call is invoked by using different strategies. The details of each strategy can be seen on the respective README.md
file of the project.
API | Service name | Strategy | Details from README.md |
---|---|---|---|
REST API | balance-server-mock |
GraphQL query call parameters | Click here |
GraphQL | customer-details-server-mock |
HTTP Headers & custom route | Click here |
If you have any questions or comments, please contact:
- Bruno Saboia de Albuquerque
- [email protected]