Enhance endpoint
Add a new endpoint to deliver additional data to our clients. This should enable them be faster during their record process or to enrich their websites.
Technically we translate the identifier of the client into wikidata and gnd identifiers and then request more data from those hubs. Metagrid mix the results from those hubs according to a config with our own data and returns an individual output. For the clients this provides several benefits:
- Easy access to data without knowing the gnd or wikidata id
- Configurable output with data from different sources
- Uniformed API to access the data
- Easily to integrate into an existing record process
Configure
We want the user to configure the endpoint to their needs. She*/he* should decide which info comes from which provider and maps to a response field
---
# name of the field in the response
last_name:
# sources from wehre we get the info
sources:
# first source
'1':
# provider
provider: hls-dhs-dss
# target local|external
target: local
# name of the field
field: 'first_name'
# we cache the result for X seconds
cache: 144000
# second source
'2': {}
# default value
default: ''