An open API service indexing awesome lists of open source software.

https://github.com/bundesapi/api-doc-template


https://github.com/bundesapi/api-doc-template

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

[[DE]](README.md)/[[EN]](README_en.md)

# [_TEMPLATE_]

## Quickstart

- Add openAPI spec in German to _openapi.yml_
- Add openAPI spec in English to _openapi_en.yml_ (or remove _openapi_en.yml_ )
- Update _index.html_ (insert the API-name in the title)
- Update _generator_config.yaml_ (Update all values surrounded with <>)
- Update the url in _CNAME_ once the api has its own subdomain
- Replace the content of README.md with a German description of the API
- Fill (or remove) README_en.md or add README-files in other languages.

## Add Library to deutschland package

Fork the [deutschland](https://github.com/bundesAPI/deutschland) package:

1. In the `pyproject.toml` of the [deutschland-package](https://github.com/bundesAPI/deutschland/blob/main/pyproject.toml) add a entry in the dependency section. The values for `` and `` must match with the values in `generator_config.yaml`
For Example:

```de-`` = {version= "^``", optional = true}```
2. Under the ```[tool.poetry.extras]``` section add the following
```` =["de-``"]```

Also add de-name in the all list:
```
all = ["de-bundestag-lobbyregister","de-dip-bundestag","de-pegel-online","de-ausbildungssuche",
"de-berufssprachkurssuche","de-coachingangebote","de-dip-bundestag","de-entgeltatlas",
"de-hochwasserzentralen","de-pflanzenschutzmittelzulassung","de-studiensuche",
"de-tagesschau", "de-weiterbildungssuche","de-feiertage",...,"de-``"]
```

3. Add apis into [test_imports.py](https://github.com/bundesAPI/deutschland/blob/main/tests/test_imports.py)
```
from deutschland..apis import DefaultApi
```

4. Open a [merge request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request).