This service allows to create, update or get port's data.
It starts with some predefined data located in ./assets/ports.jon.
Tools which should be installed locally:
- make
- docker
Run service on 8080 (by default) host port:
make runRun service on custom host port:
API_PORT=8081 make runGet test port ID:
curl http://localhost:8080/api/v1/ports/testCreate test port ID:
curl -X POST --data '{ "name": "test", "country":"test", "coordinates": [1,1] }' http://localhost:8080/api/v1/ports/testUpdate test port ID:
curl -X PUT --data '{ "name": "new_test", "country":"test", "coordinates": [1,1] }' http://localhost:8080/api/v1/ports/testInstall third-party tools:
make toolsRun unit tests:
make run-unit-testsRun integration tests:
make run
make run-tests
make cleanCheck quality of code:
make linter