OpenAPI specification file
Used to query database. These functions are to be added to the server controller section. Providing the RestFull API server read/write access to the database.
in odb_api directory: python3 -m papahana
to leave running without hang-ups: nohup python3 -m papahana & >> /dev/null &
in the test directory (odb_api/papahana/test) the tests can be run individually python3 -m unittest -v test_containers_controller
Or run all tests together: nosetest
swagger-codegen generate -i papahana.yaml -l python-flask -c config.json
where the config.json: { "packageName" : "papahana", "packageVersion" : "0.0.1" }
Generate scripts, recipes, test OBs, instrument packages, and templates with the command python generate_database.py --mode dev
.