git purge # Blaise Instrument Metadata Service
Export the PROJECT_ID variable. For Mac users execute the following, where is your sandbox name:
export PROJECT_ID=ons-blaise-v2-dev-<sandbox>
gcloud auth application-default login
poetry run python main.py
poetry install
poetry update
make test
poetry run python -m behave tests/features
poetry run python -m pytest
GET
tostartdate/<questionnaire>
Status code: 200
{
"tostartdate": "2021-06-27T16:29:00+00:00"
}
Status code: 404
{
"tostartdate": ""
}
POST
tostartdate/<questionnaire>
Requires json body of
{"tostartdate": "yyyy-mm-dd"}
Status code: 201
{
"DST2106A": "2021-08-26T00:00:00"
}
PATCH
tostartdate/<questionnaire>
Requires json body of
{"tostartdate": "yyyy-mm-dd"}
Status code: 200
{
"DST2106A": "2021-08-26T00:00:00"
}
DELETE
tostartdate/<questionnaire>
Status code: 204
GET
tmreleasedate/<questionnaire>
Status code: 200
{
"tmreleasedate": "2021-06-27T16:29:00+00:00"
}
Status code: 404
{
"tmreleasedate": ""
}
POST
tmreleasedate/<questionnaire>
Requires json body of
{"tmreleasedate": "yyyy-mm-dd"}
Status code: 201
{
"DST2106A": "2021-08-26T00:00:00"
}
PATCH
tostartdate/<questionnaire>
Requires json body of
{"tmreleasedate": "yyyy-mm-dd"}
Status code: 200
{
"DST2106A": "2021-08-26T00:00:00"
}
DELETE
tmreleasedate/<questionnaire>
Status code: 204