66 lines
1.5 KiB
JSON
66 lines
1.5 KiB
JSON
|
|
{
|
||
|
|
"code": "basics.httprequest",
|
||
|
|
"name": "HTTP Request",
|
||
|
|
"description": "Make HTTP requests to any URL with custom headers and body.",
|
||
|
|
"icon": "mdi-web",
|
||
|
|
"inputs": [
|
||
|
|
{
|
||
|
|
"name": "method",
|
||
|
|
"type": "string",
|
||
|
|
"description": "HTTP method",
|
||
|
|
"enum": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"],
|
||
|
|
"required": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "url",
|
||
|
|
"type": "string",
|
||
|
|
"description": "Target URL",
|
||
|
|
"required": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "headers",
|
||
|
|
"type": "object",
|
||
|
|
"description": "Optional HTTP headers",
|
||
|
|
"required": false
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "body",
|
||
|
|
"type": "object",
|
||
|
|
"description": "Optional request body",
|
||
|
|
"required": false
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"outputs": [
|
||
|
|
{
|
||
|
|
"name": "statusCode",
|
||
|
|
"type": "int",
|
||
|
|
"description": "HTTP status code"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "statusText",
|
||
|
|
"type": "string",
|
||
|
|
"description": "HTTP status text"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "response",
|
||
|
|
"type": "string",
|
||
|
|
"description": "Response body as string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "headers",
|
||
|
|
"type": "object",
|
||
|
|
"description": "Response headers"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "duration",
|
||
|
|
"type": "long",
|
||
|
|
"description": "Request duration in milliseconds"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"source": "S8n.Components.Packages (project)",
|
||
|
|
"class": "S8n.Components.Basics.HttpRequest",
|
||
|
|
"methods": ["Execute"],
|
||
|
|
"gui": "ComponentHttpRequest.vue",
|
||
|
|
"category": "basics",
|
||
|
|
"tags": ["http", "network", "web", "basics"]
|
||
|
|
}
|