2022-04-26 08:44:12 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
|
|
|
|
|
"title": "OpenAPI datasource",
|
|
|
|
|
"description": "A schema defining OpenAPI datasource",
|
|
|
|
|
"type": "api",
|
|
|
|
|
"source": {
|
|
|
|
|
"name": "OpenAPI",
|
|
|
|
|
"kind": "openapi",
|
|
|
|
|
"exposedVariables": {
|
|
|
|
|
"isLoading": false,
|
|
|
|
|
"data": {},
|
|
|
|
|
"rawData": {}
|
|
|
|
|
},
|
|
|
|
|
"options": {
|
2023-07-21 10:08:56 +00:00
|
|
|
"password": {
|
2022-04-26 08:44:12 +00:00
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"bearer_token": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"client_secret": {
|
|
|
|
|
"encrypted": true
|
2025-07-11 06:45:39 +00:00
|
|
|
},
|
|
|
|
|
"host": {
|
|
|
|
|
"type": "string"
|
2022-04-26 08:44:12 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"customTesting": true
|
|
|
|
|
},
|
|
|
|
|
"defaults": {
|
|
|
|
|
"format": {
|
|
|
|
|
"value": "json"
|
|
|
|
|
},
|
|
|
|
|
"definition": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"bearer_token": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"grant_type": {
|
|
|
|
|
"value": "authorization_code"
|
|
|
|
|
},
|
|
|
|
|
"add_token_to": {
|
|
|
|
|
"value": "header"
|
|
|
|
|
},
|
|
|
|
|
"header_prefix": {
|
|
|
|
|
"value": "Bearer "
|
|
|
|
|
},
|
|
|
|
|
"client_id": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"client_secret": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"auth_url": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"access_token_url": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"headers": {
|
2025-07-11 06:45:39 +00:00
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
2022-04-26 08:44:12 +00:00
|
|
|
},
|
|
|
|
|
"custom_query_params": {
|
2025-07-11 06:45:39 +00:00
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
2022-04-26 08:44:12 +00:00
|
|
|
},
|
|
|
|
|
"custom_auth_params": {
|
2025-07-11 06:45:39 +00:00
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
2022-04-26 08:44:12 +00:00
|
|
|
},
|
|
|
|
|
"client_auth": {
|
|
|
|
|
"value": "header"
|
2023-07-21 10:08:56 +00:00
|
|
|
},
|
|
|
|
|
"access_token_custom_headers": {
|
2025-07-11 06:45:39 +00:00
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
2022-04-26 08:44:12 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"properties": {
|
2025-07-11 06:45:39 +00:00
|
|
|
"host": {
|
|
|
|
|
"label": "Host",
|
|
|
|
|
"key": "host",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter host",
|
|
|
|
|
"helpText": "Overrides the host defined in the OpenAPI spec"
|
|
|
|
|
},
|
2022-04-26 08:44:12 +00:00
|
|
|
"format": {
|
|
|
|
|
"label": "Format",
|
|
|
|
|
"key": "format",
|
|
|
|
|
"type": "react-component-openapi-validator",
|
|
|
|
|
"description": "Format of definition"
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-07-11 06:45:39 +00:00
|
|
|
"required": [
|
|
|
|
|
"definition"
|
|
|
|
|
]
|
|
|
|
|
}
|