78 linhas
1,3 KiB
JSON
78 linhas
1,3 KiB
JSON
[
|
|
{
|
|
"name": "url",
|
|
"type": "text",
|
|
"label": "URL",
|
|
"required": true,
|
|
"help": "A path such as `/v1/account`. The address of the API is added for you."
|
|
},
|
|
{
|
|
"name": "method",
|
|
"type": "select",
|
|
"label": "Method",
|
|
"required": true,
|
|
"default": "GET",
|
|
"options": [
|
|
{
|
|
"label": "GET",
|
|
"value": "GET"
|
|
},
|
|
{
|
|
"label": "POST",
|
|
"value": "POST"
|
|
},
|
|
{
|
|
"label": "PUT",
|
|
"value": "PUT"
|
|
},
|
|
{
|
|
"label": "PATCH",
|
|
"value": "PATCH"
|
|
},
|
|
{
|
|
"label": "DELETE",
|
|
"value": "DELETE"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "headers",
|
|
"type": "array",
|
|
"label": "Headers",
|
|
"spec": [
|
|
{
|
|
"name": "key",
|
|
"type": "text",
|
|
"label": "Key"
|
|
},
|
|
{
|
|
"name": "value",
|
|
"type": "text",
|
|
"label": "Value"
|
|
}
|
|
],
|
|
"help": "Send `Idempotency-Key` on purchases and sends."
|
|
},
|
|
{
|
|
"name": "qs",
|
|
"type": "array",
|
|
"label": "Query string",
|
|
"spec": [
|
|
{
|
|
"name": "key",
|
|
"type": "text",
|
|
"label": "Key"
|
|
},
|
|
{
|
|
"name": "value",
|
|
"type": "text",
|
|
"label": "Value"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "body",
|
|
"type": "any",
|
|
"label": "Body (JSON)"
|
|
}
|
|
]
|