This server is an API detecting anomalies in a ADS-B message stream.
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v7.0.1 generate -i /local/dapia-detection-api.yaml -g python-flask -o /local --package-name dapia_detection_apiThe command above must be carried out in a Windows Powershell
Not yet tested
If you have a Windows Home edition, you will have to edit the Windows Registry to remove the 260 Character Path Limit and you have to manually install tensorflow. A solution to this problem was found in this GitHub solution : tensorflow/tensorflow#46934 (comment)
poetry installTo run the server, please execute the following from the root directory:
poetry run python -m dapia_detection_apiTo run the server on a Docker container, please execute the following :
Build the image and start up a container:
docker run -p 3033:3033 dapiaproject/detection-api:0.4You can visualize specification of DApIA Detection API at the following URLs:
- UI API specification: http://localhost:3033/ui/
- OpenAPI definition: http://localhost:3033/openapi.json