-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(connector/openapi): update recipe for DataHub OpenAPI with url_co…
…mplement and bearer token
- Loading branch information
1 parent
315ff8f
commit 287917d
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
metadata-ingestion/docs/sources/openapi/openapi_recipe_bearer_token.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
source: | ||
type: openapi | ||
config: | ||
name: test_endpoint # this name will appear in DatHub | ||
url: https://example.com/gms/ | ||
swagger_file: classicapi/doc/swagger.json # where to search for the OpenApi definitions | ||
bearer_token: "<token>" # bearer token | ||
|
||
# optionals | ||
forced_examples: | ||
/accounts/groupname/{name}: ['test'] | ||
/accounts/username/{name}: ['test'] | ||
ignore_endpoints: [/ignore/this, /ignore/that, /also/that_other] | ||
|
||
sink: | ||
type: "datahub-rest" | ||
config: | ||
server: 'http://localhost:8080' |