Skip to content

Conversation

@Teddy-1000
Copy link
Collaborator

No description provided.

Comment on lines 17 to 32
openapi_metadata = {
"title": "EDR Observations API Europe EUMETNET",
"description": (
"OGC EDR API data service for European meteorological observations from EUMETNET,"
" co-funded by the European Union."
),
"contact": {
"name": "EUMETNET",
"url": "https://www.eumetnet.eu/about-us/",
"email": "[email protected]",
},
"license_info": {
"name": "CC-BY-4.0",
"url": "https://creativecommons.org/licenses/by/4.0/",
},
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep it symmetric and move this to a JSON file as well?

Comment on lines +15 to +16
| JINJA2_TEMPLATES | Path to a folder with jinja2 templates to override the default templates used by the API. See template section for details ||
| OPENAPI_METADATA_PATH | Path to an alternative OpenAPI metadata json file. It need to have the same fields as the openapi/openapi_metadata.py file. ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the mechanism to inject the JINJA templates and json files into the docker container?

Comment on lines 67 to 70
Query(
description="Institution that published the data",
openapi_examples=openapi_examples.institution,
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like your line width settings are different from 120 which is enforced in the pre-commit hooks...
Can you change that, so we don't get these unneeded diffs? ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants