- A simple api service build on NestJS
- Use Elastic APM as log service
- Manage Document by Swagger UI
# deploy service
$ docker-compose -f docker/docker-compose.yaml up -d
# rebuild api service
$ docker-compose -f docker/docker-compose.yaml build api-server
http://localhost:3000/document/#/
http://localhost:5601/app/apm/services
curl -X GET \ 'http://localhost:3000/product/list?limit=10&> offset=0' \ -H 'Host: localhost:3000'
curl -X GET \ 'http://localhost:3000/product/1/detail' \ -H 'Host: localhost:3000'
curl -X PUT \ http://localhost:3000/order \ -H 'Content-Type: application/json' \ -H 'Host: localhost:3000' \ -H 'x-user-session: b61c9a51-b750-4353-a0f2-faaa1a1d8431' \ -d '{ "productList": [ { "productID": 1, "quantity": 2 }, { "productID": 2, "quantity": 3 } ] }'