diff --git a/definitions/draco_rest/runtime_functions/rest_control_respond.proto.json b/definitions/draco_rest/runtime_functions/rest_control_respond.proto.json index 2403a68..728fa50 100644 --- a/definitions/draco_rest/runtime_functions/rest_control_respond.proto.json +++ b/definitions/draco_rest/runtime_functions/rest_control_respond.proto.json @@ -2,23 +2,59 @@ "runtimeName": "rest::control::respond", "runtimeParameterDefinitions": [ { - "runtimeName": "http_response", + "runtimeName": "http_status_code", + "defaultValue": null, "name": [ { "code": "en-US", - "content": "Http Response" + "content": "HTTP Status Code" } ], "description": [ { "code": "en-US", - "content": "Takes an HTTP response object and transmits it to the requesting client. This parameter represents the final output of the server, including headers, status code, and body content." + "content": "An HTTP status code is a three-digit number (100–599) indicating the result of a request (e.g., 200, 404, 500)." + } + ], + "documentation": [] + }, + { + "runtimeName": "headers", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "HTTP response headers" + } + ], + "description": [ + { + "code": "en-US", + "content": "A collection of key-value pairs containing additional response metadata." + } + ], + "documentation": [] + }, + { + "runtimeName": "payload", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Response Payload" + } + ], + "description": [ + { + "code": "en-US", + "content": "Contains the response payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header." } ], "documentation": [] } ], "deprecationMessage": [], + "throwsError": false, "name": [ { "code": "en-US", @@ -41,11 +77,13 @@ "displayMessage": [ { "code": "en-US", - "content": "Sends ${http_response} as a Response" + "content": "Sends response with status ${http_status_code} and payload ${payload}" } ], - "throwsError": false, "displayIcon": "tabler:cube-sent", - "linkedDataTypeIdentifiers": ["HTTP_RESPONSE"], - "signature": "(http_response: HTTP_RESPONSE): void" + "signature": "(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, payload: T): void", + "linkedDataTypeIdentifiers": [ + "HTTP_STATUS_CODE", + "OBJECT" + ] } diff --git a/definitions/taurus/http/runtime_functions/http_request_create.proto.json b/definitions/taurus/http/runtime_functions/http_request_create.proto.json deleted file mode 100644 index e13d1a2..0000000 --- a/definitions/taurus/http/runtime_functions/http_request_create.proto.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "runtimeName": "http::request::create", - "runtimeParameterDefinitions": [ - { - "runtimeName": "http_method", - "defaultValue": null, - "name": [ - { - "code": "en-US", - "content": "HTTP Method" - } - ], - "description": [ - { - "code": "en-US", - "content": "Defines the HTTP method to be used, such as GET, POST, PUT, or DELETE." - } - ], - "documentation": [] - }, - { - "runtimeName": "headers", - "defaultValue": null, - "name": [ - { - "code": "en-US", - "content": "HTTP Headers" - } - ], - "description": [ - { - "code": "en-US", - "content": "A collection of key-value pairs containing additional request metadata." - } - ], - "documentation": [] - }, - { - "runtimeName": "url", - "defaultValue": null, - "name": [ - { - "code": "en-US", - "content": "Request URL" - } - ], - "description": [ - { - "code": "en-US", - "content": "Specifies the endpoint address, including protocol, host, path, and query parameters, where the request is directed." - } - ], - "documentation": [] - }, - { - "runtimeName": "payload", - "defaultValue": null, - "name": [ - { - "code": "en-US", - "content": "Request Payload" - } - ], - "description": [ - { - "code": "en-US", - "content": "Contains the request payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header." - } - ], - "documentation": [] - } - ], - "throwsError": false, - "name": [ - { - "code": "en-US", - "content": "Create HTTP-Request" - } - ], - "description": [ - { - "code": "en-US", - "content": "Creates an HTTP-Request object with the specified method, headers, url and payload." - } - ], - "documentation": [], - "alias": [ - { - "code": "en-US", - "content": "create;request;http" - } - ], - "displayMessage": [ - { - "code": "en-US", - "content": "Create HTTP-Request to ${url} with ${payload}" - } - ], - "deprecationMessage": [], - "displayIcon": "tabler:world-www", - "signature": "(http_method: HTTP_METHOD, headers: OBJECT<{}>, url: HTTP_URL, payload: T): HTTP_REQUEST", - "linkedDataTypeIdentifiers": [ - "HTTP_URL", - "HTTP_METHOD", - "OBJECT", - "HTTP_REQUEST" - ] -} diff --git a/definitions/taurus/http/runtime_functions/http_request_send.proto.json b/definitions/taurus/http/runtime_functions/http_request_send.proto.json index ca19a56..e2ca4a2 100644 --- a/definitions/taurus/http/runtime_functions/http_request_send.proto.json +++ b/definitions/taurus/http/runtime_functions/http_request_send.proto.json @@ -2,18 +2,69 @@ "runtimeName": "http::request::send", "runtimeParameterDefinitions": [ { - "runtimeName": "http_request", + "runtimeName": "http_method", "defaultValue": null, "name": [ { "code": "en-US", - "content": "HTTP request object" + "content": "HTTP Method" } ], "description": [ { "code": "en-US", - "content": "Takes an HTTP request object, which includes the HTTP method, url, headers, and payload, and sends it to the specified endpoint." + "content": "Defines the HTTP method to be used, such as GET, POST, PUT, or DELETE." + } + ], + "documentation": [] + }, + { + "runtimeName": "headers", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "HTTP Headers" + } + ], + "description": [ + { + "code": "en-US", + "content": "A collection of key-value pairs containing additional request metadata." + } + ], + "documentation": [] + }, + { + "runtimeName": "url", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Request URL" + } + ], + "description": [ + { + "code": "en-US", + "content": "Specifies the endpoint address, including protocol, host, path, and query parameters, where the request is directed." + } + ], + "documentation": [] + }, + { + "runtimeName": "payload", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Request Payload" + } + ], + "description": [ + { + "code": "en-US", + "content": "Contains the request payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header." } ], "documentation": [] @@ -42,14 +93,16 @@ "displayMessage": [ { "code": "en-US", - "content": "Send request with ${http_request}" + "content": "Send request to ${url} with ${payload}" } ], "deprecationMessage": [], "displayIcon": "tabler:world-www", - "signature": "(http_request: HTTP_REQUEST): HTTP_RESPONSE", + "signature": "(http_method: HTTP_METHOD, headers: OBJECT<{}>, url: HTTP_URL, payload: T): HTTP_RESPONSE", "linkedDataTypeIdentifiers": [ - "HTTP_RESPONSE", - "HTTP_REQUEST" + "HTTP_METHOD", + "OBJECT", + "HTTP_URL", + "HTTP_RESPONSE" ] } diff --git a/definitions/taurus/http/runtime_functions/http_response_create.proto.json b/definitions/taurus/http/runtime_functions/http_response_create.proto.json deleted file mode 100644 index 8cae035..0000000 --- a/definitions/taurus/http/runtime_functions/http_response_create.proto.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "runtimeName": "http::response::create", - "runtimeParameterDefinitions": [ - { - "runtimeName": "http_status_code", - "defaultValue": null, - "name": [ - { - "code": "en-US", - "content": "HTTP Status Code" - } - ], - "description": [ - { - "code": "en-US", - "content": "An HTTP status code is a three-digit number (100–599) indicating the result of a request (e.g., 200, 404, 500)." - } - ], - "documentation": [] - }, - { - "runtimeName": "headers", - "defaultValue": null, - "name": [ - { - "code": "en-US", - "content": "HTTP Headers" - } - ], - "description": [ - { - "code": "en-US", - "content": "A collection of key-value pairs containing additional response metadata." - } - ], - "documentation": [] - }, - { - "runtimeName": "payload", - "defaultValue": null, - "name": [ - { - "code": "en-US", - "content": "Request Payload" - } - ], - "description": [ - { - "code": "en-US", - "content": "Contains the response payload, such as JSON, XML, form data, or binary content, depending on the Content-Type header." - } - ], - "documentation": [] - } - ], - "throwsError": false, - "name": [ - { - "code": "en-US", - "content": "Create HTTP-Response" - } - ], - "description": [ - { - "code": "en-US", - "content": "Creates an HTTP-Response object with the specified method, headers and payload." - } - ], - "documentation": [], - "alias": [ - { - "code": "en-US", - "content": "create;response;http" - } - ], - "displayMessage": [ - { - "code": "en-US", - "content": "Create HTTP-Response for status ${http_status_code} and payload ${payload}" - } - ], - "deprecationMessage": [], - "displayIcon": "tabler:world-www", - "signature": "(http_status_code: HTTP_STATUS_CODE, headers: OBJECT<{}>, payload: T): HTTP_RESPONSE", - "linkedDataTypeIdentifiers": [ - "HTTP_STATUS_CODE", - "OBJECT", - "HTTP_RESPONSE" - ] -}