Snack Food Service
- Docker
$ cd snack-food
$ docker-compose -f docker-compose.yml up -d
The api.yaml
is Rest APIs documentation source file in
SWAGGER
format.
After starting the application, the rendered documentation, in YAML
format, can be found at:
http://localhost:8080/api/v1/api-docs
Use SWAGGER-EDITOR
for a better visualization.
To follow the microservices pattern, I would use Kong
as API Gateway.
It is very easy to configure, just create the Service
directing to the server and the Route
directing to the endpoints of the server.
It is also possible to use plugins, such as JWT
for authentication guarantee.
Also, to get an IAM, I would use Keycloak
.