Bassoon app
To run the app locally use this command:
$ make run
To run app using Docker use this command:
$ docker-compose up
To run tests for the app use this command:
$ make test
or to be able to see coverage report:
$ make test-cover
To run linter use this command:
$ make lint
App configurable with ENVs and .env
file:
BASSOON_PORTS_FILEPATH: /bassoon/ports.json
BASSOON_HTTP_PORT: :8000
Create new entry:
POST /v1/ports
Payload example:
{
"id": "KWK",
"name": "Harare",
"city": "Harare",
"country": "Zimbabwe",
"alias": [],
"regions": [],
"coordinates": [
31.03351,
-17.8251657
],
"province": "Harare",
"timezone": "Africa/Harare",
"unlocs": [
"ZWHRE"
]
}
Retrieve entry by id
:
GET /v1/ports/{id}