Rounak Dhillon 5fcea965b6
Doc: Rest YAML File Updation (#21922)
Co-authored-by: “Rounak <“rounakpreet.d@deuexsolutions.com”>
Co-authored-by: Prajwal214 <167504578+Prajwal214@users.noreply.github.com>
2025-06-24 10:14:16 +00:00

2.2 KiB

title slug
Run the OpenAPI/REST Connector Externally /connectors/api/rest/yaml

{% connectorDetailsHeader name="REST" stage="BETA" platform="OpenMetadata" availableFeatures=["API Endpoint", "Request Schema", "Response Schema"] unavailableFeatures=[] / %}

In this section, we provide guides and references to use the OpenAPI/REST connector.

Configure and schedule REST metadata workflows from the OpenMetadata UI:

{% partial file="/v1.7/connectors/external-ingestion-deployment.md" /%}

Requirements

Python Requirements

{% partial file="/v1.7/connectors/python-requirements.md" /%}

Generate OpenAPI Schema URL

Metadata Ingestion

1. Define the YAML Config

This is a sample config for OpenAPI:

{% codePreview %}

{% codeInfoContainer %}

Source Configuration - Service Connection

{% codeInfo srNumber=1 %}

OpenAPI Schema URL: An OpenAPI schema URL typically refers to the URL where the OpenAPI Specification (OAS) document of a web service is hosted. The document defines the service's API, including available endpoints, request/response formats, authentication methods, etc. It is usually in JSON format. for e.g. https://petstore3.swagger.io/api/v3/openapi.json

Token: An authentication token to connect to an OpenAPI schema URL. It is only required if the API schema is protected or secured.

{% /codeInfo %}

{% /codeInfoContainer %}

{% codeBlock fileName="filename.yaml" %}

source:
  type: rest
  serviceName: openapi_rest
  serviceConnection:
    config:
      type: ApiMetadata
      openAPISchemaURL: https://docs.open-metadata.org/swagger.json
      docURL: https://petstore3.swagger.io/
      # token: <jwt_token>

{% partial file="/v1.7/connectors/yaml/api/source-config.md" /%}

{% partial file="/v1.7/connectors/yaml/ingestion-sink.md" /%}

{% partial file="/v1.7/connectors/yaml/workflow-config.md" /%}

{% /codeBlock %}

{% /codePreview %}

{% partial file="/v1.7/connectors/yaml/ingestion-cli.md" /%}