<@U01VB9DM421> I was working on ingestion through ...
# contribute-code
b
@stale-jewelry-2440 I was working on ingestion through Openapi using this documentation https://datahubproject.io/docs/generated/ingestion/sources/openapi/ but it is not working for get_token's post method. It is saying this error: Command failed: Unable to get a valid token: {"detail":[{"loc":["query","username"],"msg":"field required","type":"value_ error.missing"},{"loc":["query","password"],"msg":"field required","type":"value_error.missing"}]}
b
@orange-night-91387 Do you mind advising here?
o
This is for the OpenAPI ingestion source, are you looking to ingest your OpenAPI schema into DataHub or ingest other metadata using our OpenAPI endpoints? Can you provide the recipe you are using (with user/pass redacted)?
b
Here's ingestion file,
Copy code
source:
  type: openapi
  config:
    name: api-ingestion-demo-1
    url: <http://localhost:3000/>
    swagger_file: openapi.json
    username: <mailto:user123@example.com|user123@example.com>
    password: string
    get_token:
      request_type: post
      url_complement: user/login

sink:
  type: "datahub-rest"
  config:
    server: "<http://localhost:8080>"
Also, I have raised a issue related to the same, bug-link: https://github.com/datahub-project/datahub/issues/7914