2024-09-11 13:36:53 +05:30
---
title: Run the OpenAPI/REST Connector Externally
slug: /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:
- [Requirements ](#requirements )
- [Metadata Ingestion ](#metadata-ingestion )
2025-04-18 08:42:17 +02:00
{% partial file="/v1.8/connectors/external-ingestion-deployment.md" /%}
2024-09-11 13:36:53 +05:30
## Requirements
### Python Requirements
2025-04-18 08:42:17 +02:00
{% partial file="/v1.8/connectors/python-requirements.md" /%}
2024-09-11 13:36:53 +05:30
### Generate OpenAPI Schema URL
- Generate OpenAPI schema url for your service[OpenAPI spec ](https://swagger.io/specification/#openapi-document )
## Metadata Ingestion
### 1. Define the YAML Config
This is a sample config for OpenAPI:
{% codePreview %}
{% codeInfoContainer %}
#### Source Configuration - Service Connection
{% codeInfo srNumber=1 %}
2024-12-28 18:33:58 +01:00
**OpenAPI Schema URL**:
2024-09-11 13:36:53 +05:30
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" %}
```yaml {% isCodeBlock=true %}
source:
type: rest
serviceName: openapi_rest
serviceConnection:
config:
2024-12-28 18:33:58 +01:00
type: ApiMetadata
2024-09-11 13:36:53 +05:30
```
```yaml {% srNumber=1 %}
openAPISchemaURL: https://docs.open-metadata.org/swagger.json
```
2025-04-18 08:42:17 +02:00
{% partial file="/v1.8/connectors/yaml/api/source-config.md" /%}
2024-09-11 13:36:53 +05:30
2025-04-18 08:42:17 +02:00
{% partial file="/v1.8/connectors/yaml/ingestion-sink.md" /%}
2024-09-11 13:36:53 +05:30
2025-04-18 08:42:17 +02:00
{% partial file="/v1.8/connectors/yaml/workflow-config.md" /%}
2024-09-11 13:36:53 +05:30
{% /codeBlock %}
{% /codePreview %}
2025-04-18 08:42:17 +02:00
{% partial file="/v1.8/connectors/yaml/ingestion-cli.md" /%}