ToolJet/docs/versioned_docs/version-2.36.0/data-sources/openapi.md
Karan Rathod 11d38325cb
[docs]:App builder 1.6 updates (#9514)
* add app-builder doc updates on Table and themes

* breakdown chart docs in two parts and add custom css for headers

* update chart example images and add more examples

* revamp table component and minor fixes

* fix typos

* fix table formatting for docusarus v3

* fix filepicker table

* create new version

* fix grammar and tables
2024-04-26 15:17:51 +05:30

42 lines
No EOL
1.6 KiB
Markdown

---
id: openapi
title: OpenAPI
---
# OpenAPI
OpenAPI is a specification for designing and documenting RESTful APIs. Using OpenAPI datasource, ToolJet can generate REST API operations from OpenAPI Specs.
## Connection
To establish a connection with the OpenAPI global datasource, you can either click on the `+Add new global datasource` button located on the query panel or navigate to the **[Global Datasources](/docs/data-sources/overview)** page through the ToolJet dashboard.
- Connections are created based on OpenAPI specifications.
- The available authentication methods currently supported are Basic Auth, API Key, Bearer Token, and OAuth 2.0.
- It is also possible to use specifications that require multiple authentications. Learn more [here](https://swagger.io/docs/specification/authentication/).
:::info
OpenAPI datasource accepts specifications only in **JSON** and **YAML** formats.
:::
<div style={{textAlign: 'center'}}>
<img className="screenshot-full" src="/img/datasource-reference/openapi/openapiconnect-v2.png" alt="OpenAPI" />
</div>
## Querying OpenAPI
- Operations will be automatically generated from the specifications, and each operation will be distinct from others.
### Fields
- **Host** (Base URL): Some specifications may have one or multiple base URLs/servers, and certain operations might have separate base URLs. Therefore, you can choose the appropriate URL from the host selection.
- **Operation**
<div style={{textAlign: 'center'}}>
<img className="screenshot-full" src="/img/datasource-reference/openapi/query.png" alt="OpenAPI" />
</div>