Skip to content

Commit

Permalink
fix(connector/openapi): update recipe for DataHub OpenAPI with url_co…
Browse files Browse the repository at this point in the history
…mplement and bearer token
  • Loading branch information
sagar-salvi-apptware committed Sep 24, 2024
1 parent 315ff8f commit 287917d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion metadata-ingestion/docs/sources/openapi/openapi_recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source:
swagger_file: classicapi/doc/swagger.json # where to search for the OpenApi definitions
get_token: # optional, if you need to get an authentication token beforehand
request_type: get
url: api/authentication/login?username={username}&password={password}
url_complement: api/authentication/login?username={username}&password={password}
username: your_username # optional
password: your_password # optional
forced_examples: # optionals
Expand Down
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'

0 comments on commit 287917d

Please sign in to comment.