+++ title = "Service blueprint (Flask)" +++
This is a blueprint service written in Flask. You should change this summary to describe your service. Some points to address:
- What feature(s) does this service provide for a Walhall app?
- What kinds of data models does this service provide for an app?
- An overview of how the data models work together.
A [model 1] has the following properties:
- [Property]: One-sentence description of the property.
- [Property]: One-sentence description of the property.
- [Property]: One-sentence description of the property.
GET /{model1}/{property}/
: Retrieves a ____.POST /{model1}/{property}/
: Creates a ____.PATCH /{model1}/{property}/
: Updates a ____.DELETE /{model1}/{property}/
: Deletes a ____.
Click here for the full API documentation.
A [model 2] has the following properties:
- [Property]: One-sentence description of the property.
- [Property]: One-sentence description of the property.
- [Property]: One-sentence description of the property.
GET /{model2}/{property}/
: Retrieves a ____.POST /{model2}/{property}/
: Creates a ____.PATCH /{model2}/{property}/
: Updates a ____.DELETE /{model2}/{property}/
: Deletes a ____.
Click here for the full API documentation.
This is a section where you would document endpoints that are not related to a data model, e.g., with the search service.
For each of these endpoints, a more in-depth explanation is necessary.
Here are some instructions for developing this service locally:
You must have Docker installed.
Build the Docker image:
docker-compose build
Run a web server with this service:
docker-compose up
Now, open your browser and go to http://localhost:8089.
For the Swagger API Doc, go to http://localhost:8089/docs.
To run the tests once:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh' {name-of-service}
To run the tests and leave bash open inside the container so that it's possible to
re-run the tests faster again using bash scripts/run-tests.sh [--keepdb]
:
docker-compose run --rm --entrypoint 'bash scripts/run-tests.sh --bash-on-finish' {name-of-service}
To run bash:
docker-compose run --rm --entrypoint 'bash' {name-of-service}
Click here to go to the full API documentation.
Copyright ©2019 Humanitec GmbH.
This code is released under the Humanitec Affero GPL.