2022-05-02 00:18:15 -07:00
|
|
|
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
|
2024-09-26 05:24:13 +05:30
|
|
|
|
|
|
|
# option 1: bearer token
|
|
|
|
bearer_token: "<token>"
|
|
|
|
|
|
|
|
# option 2: dynamically generated tokens, username/password is mandetory
|
|
|
|
get_token:
|
2022-05-02 00:18:15 -07:00
|
|
|
request_type: get
|
2024-09-26 05:24:13 +05:30
|
|
|
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
|
|
|
|
|
2022-05-02 00:18:15 -07:00
|
|
|
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'
|