mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-03 23:28:11 +00:00
30 lines
934 B
YAML
30 lines
934 B
YAML
source:
|
|
type: openapi
|
|
config:
|
|
name: test_endpoint # this name will appear in DatHub
|
|
url: https://test_endpoint.com/
|
|
swagger_file: classicapi/doc/swagger.json # where to search for the OpenApi definitions
|
|
|
|
# option 1: bearer token
|
|
bearer_token: "<token>"
|
|
|
|
# option 2: dynamically generated tokens, username/password is mandetory
|
|
get_token:
|
|
request_type: get
|
|
url_complement: api/authentication/login?username={username}&password={password}
|
|
username: your_username
|
|
password: your_password
|
|
|
|
# option 3: using basic auth
|
|
username: your_username
|
|
password: your_password
|
|
|
|
forced_examples: # optionals
|
|
/accounts/groupname/{name}: ['test']
|
|
/accounts/username/{name}: ['test']
|
|
ignore_endpoints: [/ignore/this, /ignore/that, /also/that_other] # optional, the endpoints to ignore
|
|
|
|
sink:
|
|
type: "datahub-rest"
|
|
config:
|
|
server: 'http://localhost:8080' |