2021-09-15 02:50:55 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
|
2021-09-15 02:50:55 +00:00
|
|
|
"title": "Graphql datasource",
|
|
|
|
|
"description": "A schema defining graphql datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "api",
|
2021-09-22 05:13:12 +00:00
|
|
|
"source": {
|
|
|
|
|
"name": "GraphQL",
|
|
|
|
|
"kind": "graphql",
|
|
|
|
|
"options": {
|
2022-01-27 05:25:16 +00:00
|
|
|
"url": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"headers": {
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"url_params": {
|
|
|
|
|
"type": "array"
|
|
|
|
|
},
|
|
|
|
|
"body": {
|
|
|
|
|
"type": "array"
|
2023-07-21 10:08:56 +00:00
|
|
|
},
|
|
|
|
|
"auth_type": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"grant_type": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"add_token_to": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"header_prefix": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"access_token_url": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"client_id": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"client_secret": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"bearer_token": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"scopes": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"auth_url": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"client_auth": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"custom_auth_params": {
|
|
|
|
|
"type": "array"
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|
2021-09-22 05:13:12 +00:00
|
|
|
},
|
|
|
|
|
"exposedVariables": {
|
2022-02-08 03:14:38 +00:00
|
|
|
"isLoading": false,
|
2021-09-22 05:13:12 +00:00
|
|
|
"data": {},
|
|
|
|
|
"rawData": {}
|
|
|
|
|
},
|
|
|
|
|
"customTesting": true
|
|
|
|
|
},
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {
|
2022-01-27 05:25:16 +00:00
|
|
|
"url": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
2023-07-21 10:08:56 +00:00
|
|
|
"auth_type": {
|
|
|
|
|
"value": "none"
|
|
|
|
|
},
|
|
|
|
|
"grant_type": {
|
|
|
|
|
"value": "authorization_code"
|
|
|
|
|
},
|
|
|
|
|
"add_token_to": {
|
|
|
|
|
"value": "header"
|
|
|
|
|
},
|
|
|
|
|
"header_prefix": {
|
|
|
|
|
"value": "Bearer "
|
|
|
|
|
},
|
|
|
|
|
"access_token_url": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"client_id": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"client_secret": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"scopes": {
|
|
|
|
|
"value": "read, write"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"bearer_token": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"auth_url": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"client_auth": {
|
|
|
|
|
"value": "header"
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"headers": {
|
|
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-07-21 10:08:56 +00:00
|
|
|
"custom_query_params": {
|
|
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"custom_auth_params": {
|
|
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"access_token_custom_headers": {
|
|
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"multiple_auth_enabled": {
|
|
|
|
|
"value": false
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"url_params": {
|
|
|
|
|
"value": [
|
|
|
|
|
[
|
|
|
|
|
"",
|
|
|
|
|
""
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
}
|
2021-11-22 08:22:32 +00:00
|
|
|
},
|
2021-09-15 02:50:55 +00:00
|
|
|
"properties": {
|
|
|
|
|
"url": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "URL",
|
|
|
|
|
"key": "url",
|
2021-09-15 02:50:55 +00:00
|
|
|
"type": "text",
|
2023-07-21 10:08:56 +00:00
|
|
|
"description": "https://api.example.com/v1/graphql"
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
|
|
|
|
"headers": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "Headers",
|
|
|
|
|
"key": "headers",
|
2021-09-15 02:50:55 +00:00
|
|
|
"type": "react-component-headers",
|
2024-10-28 17:56:26 +00:00
|
|
|
"description": "key-value pair headers for graphql api",
|
|
|
|
|
"width":"316px"
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
|
|
|
|
"url_params": {
|
2022-01-17 07:08:17 +00:00
|
|
|
"label": "URL parameters",
|
|
|
|
|
"key": "url_params",
|
2021-09-15 02:50:55 +00:00
|
|
|
"type": "react-component-headers",
|
2024-10-28 17:56:26 +00:00
|
|
|
"description": "key-value pair url parameters for graphql api",
|
|
|
|
|
"width":"316px"
|
2023-07-21 10:08:56 +00:00
|
|
|
},
|
|
|
|
|
"auth_type": {
|
2024-10-28 17:56:26 +00:00
|
|
|
"label": "Authentication type",
|
2023-07-21 10:08:56 +00:00
|
|
|
"key": "auth_type",
|
|
|
|
|
"type": "react-component-oauth-authentication",
|
|
|
|
|
"description": "key-value pair headers for graphQL api"
|
2021-09-15 02:50:55 +00:00
|
|
|
}
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"required": [
|
|
|
|
|
"url"
|
|
|
|
|
]
|
|
|
|
|
}
|