Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/statisticsnorway/dapla-start-api
Backend for dapla-start
https://github.com/statisticsnorway/dapla-start-api
Last synced: about 1 month ago
JSON representation
Backend for dapla-start
- Host: GitHub
- URL: https://github.com/statisticsnorway/dapla-start-api
- Owner: statisticsnorway
- Created: 2021-12-01T10:11:39.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-14T17:09:10.000Z (9 months ago)
- Last Synced: 2024-04-16T02:08:33.027Z (9 months ago)
- Language: Python
- Size: 266 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_dapla-start-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=statisticsnorway_dapla-start-api)
# dapla-start-api
API used by https://start.dapla.ssb.no
## Development
Use `make` for common tasks:
```
local-install Installation steps for local development
test Run tests
bump-version-patch Bump patch version, e.g. 0.0.1 -> 0.0.2.
bump-version-minor Bump minor version, e.g. 0.0.1 -> 0.1.0.
local-build Build the app for local development
local-run Run the app locally
docker-build Build docker image
docker-run Run app locally with docker
docker-shell Enter shell of locally running docker app
docker-cleanup Cleanup locally running docker app
```Swagger UI for the API can be browsed locally at: http://localhost:8000/docs
## Logging
This library uses the standard Python logging library with two pre-defined log configurations.
The default configuration will use a colourful, human-readable output which is well suited for running locally.However, by setting the environment variable `LOG_FORMAT_ECS`, one can switch to the Elastic Common Schema (ECS) format
which is more suitable for log visualization tools like Kibana.## Update user list
https://github.com/statisticsnorway/dapla-start-toolkit#update-ssb-users-list-served-by-dapla-start-api