Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lblod/construct-organization-relationships-service
https://github.com/lblod/construct-organization-relationships-service
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lblod/construct-organization-relationships-service
- Owner: lblod
- License: mit
- Created: 2022-10-27T13:19:24.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T08:58:28.000Z (7 months ago)
- Last Synced: 2024-06-12T15:44:53.270Z (7 months ago)
- Language: JavaScript
- Size: 40 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# construct-organization-relationships-service
This service constructs the governing bodies, mandates and ministers of newly created organizations.
It's taking inspiration on [loket-cli](https://github.com/lblod/loket-cli) and is extended to handle worship administrative units as well.
## Installation
Add the following snippet to your `docker-compose.yml`:
```
construct-organization-relationships:
image: lblod/construct-organization-relationships-service
```## API
### `POST /create-relationships/:organizationUuid`
Expects the UUID of a newly created organization as a parameter.
Creates the following data and links it to the organization:
- governing body (`besluit:Bestuursorgaan`)
- governing body in time (`besluit:Bestuursorgaan`)
- mandate (`mandaat:Mandaat`)
- bestuursfunctie, for non-worship organizations only (`lblodlg:Bestuursfunctie`)
- minister position, for `ere:BestuurVanDeEredienst` only (`ere:PositieBedienaar`)## Environment variables
| Variable | Description | Default |
| ------------------------------------- | --------------------------------------------------------------------- | --------------------- |
| START_DATE_NON_WORSHIP_GOVERNING_BODY | Start date of governing bodies for non worship services | "2019-01-01T00:00:00" |
| END_DATE_NON_WORSHIP_GOVERNING_BODY | End date of governing bodies for non worship services (not mandatory) | |
| START_DATE_WORSHIP_GOVERNING_BODY | Start date of governing bodies for worship services | "2020-04-01T00:00:00" |
| END_DATE_WORSHIP_GOVERNING_BODY | End date of governing bodies for worship services | "2023-03-31T00:00:00" |