2021-09-15 02:50:55 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://json-schema.org/",
|
|
|
|
|
"$id": "https://tooljet.io/Graphql.schema.json",
|
|
|
|
|
"title": "Graphql datasource",
|
|
|
|
|
"description": "A schema defining graphql datasource",
|
|
|
|
|
"type": "object",
|
2021-09-22 05:13:12 +00:00
|
|
|
"source": {
|
|
|
|
|
"name": "GraphQL",
|
|
|
|
|
"kind": "graphql",
|
|
|
|
|
"options": {
|
|
|
|
|
"url": { "type": "string" },
|
|
|
|
|
"headers": { "type": "array" },
|
|
|
|
|
"url_params": { "type": "array" },
|
|
|
|
|
"body": { "type": "array" }
|
|
|
|
|
},
|
|
|
|
|
"exposedVariables": {
|
|
|
|
|
"isLoading": {},
|
|
|
|
|
"data": {},
|
|
|
|
|
"rawData": {}
|
|
|
|
|
},
|
|
|
|
|
"customTesting": true
|
|
|
|
|
},
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {
|
|
|
|
|
"url": { "value": "" },
|
|
|
|
|
"headers": { "value": [["", ""]] },
|
|
|
|
|
"url_params": { "value": [["", ""]] }
|
|
|
|
|
},
|
2021-09-15 02:50:55 +00:00
|
|
|
"properties": {
|
|
|
|
|
"url": {
|
|
|
|
|
"$label": "URL",
|
|
|
|
|
"$key": "url",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "https://api.example.com/v1/"
|
|
|
|
|
},
|
|
|
|
|
"headers": {
|
|
|
|
|
"$label": "Headers",
|
|
|
|
|
"$key": "headers",
|
|
|
|
|
"type": "react-component-headers",
|
|
|
|
|
"description": "key-value pair headers for rest api"
|
|
|
|
|
},
|
|
|
|
|
"url_params": {
|
|
|
|
|
"$label": "URL parameters",
|
|
|
|
|
"$key": "url_params",
|
|
|
|
|
"type": "react-component-headers",
|
|
|
|
|
"description": "key-value pair url parameters for rest api"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"required": ["url"]
|
|
|
|
|
}
|