https://github.com/lblod/construct-organization-relationships-service
https://github.com/lblod/construct-organization-relationships-service
Last synced: 4 months 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-11T09:16:23.000Z (4 months ago)
- Last Synced: 2025-03-11T10:29:15.308Z (4 months ago)
- Language: JavaScript
- Size: 54.7 KB
- Stars: 0
- Watchers: 9
- 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) | |