github.com/instill-ai/component@v0.16.0-beta/pkg/connector/restapi/v0/config/tasks.json (about)

     1  {
     2    "$defs": {
     3      "inputWithBody": {
     4        "instillEditOnNodeFields": [
     5          "body",
     6          "endpoint_url"
     7        ],
     8        "instillUIOrder": 0,
     9        "properties": {
    10          "body": {
    11            "description": "The request body",
    12            "instillAcceptFormats": [
    13              "semi-structured/json"
    14            ],
    15            "instillShortDescription": "The request body",
    16            "instillUIOrder": 1,
    17            "instillUpstreamTypes": [
    18              "reference"
    19            ],
    20            "order": 1,
    21            "required": [],
    22            "title": "Body"
    23          },
    24          "endpoint_url": {
    25            "description": "The API endpoint url",
    26            "instillAcceptFormats": [
    27              "string"
    28            ],
    29            "instillUIOrder": 0,
    30            "instillUpstreamTypes": [
    31              "value",
    32              "reference",
    33              "template"
    34            ],
    35            "title": "Endpoint Url",
    36            "type": "string"
    37          },
    38          "output_body_schema": {
    39            "description": "The JSON schema of output body",
    40            "instillAcceptFormats": [
    41              "string"
    42            ],
    43            "instillUIMultiline": true,
    44            "instillShortDescription": "The JSON schema of output body",
    45            "instillUIOrder": 1,
    46            "instillUpstreamTypes": [
    47              "reference",
    48              "value"
    49            ],
    50            "order": 2,
    51            "required": [],
    52            "title": "Body",
    53            "type": "string"
    54          }
    55        },
    56        "required": [
    57          "endpoint_url"
    58        ],
    59        "title": "Input",
    60        "type": "object"
    61      },
    62      "inputWithoutBody": {
    63        "instillUIOrder": 0,
    64        "properties": {
    65          "endpoint_url": {
    66            "description": "The API endpoint url",
    67            "instillAcceptFormats": [
    68              "string"
    69            ],
    70            "instillUIOrder": 0,
    71            "instillUpstreamTypes": [
    72              "value",
    73              "reference",
    74              "template"
    75            ],
    76            "title": "Endpoint Url",
    77            "type": "string"
    78          },
    79          "output_body_schema": {
    80            "description": "The request body",
    81            "instillAcceptFormats": [
    82              "string"
    83            ],
    84            "instillShortDescription": "The request body",
    85            "instillUIOrder": 1,
    86            "instillUpstreamTypes": [
    87              "reference",
    88              "value"
    89            ],
    90            "instillUIMultiline": true,
    91            "order": 1,
    92            "required": [],
    93            "title": "Body",
    94            "type": "string"
    95          }
    96        },
    97        "required": [
    98          "endpoint_url"
    99        ],
   100        "title": "Input Without Body",
   101        "type": "object"
   102      },
   103      "output": {
   104        "description": "The HTTP response from the API",
   105        "instillUIOrder": 0,
   106        "properties": {
   107          "body": {
   108            "description": "The body of the response",
   109            "instillFormat": "semi-structured/json",
   110            "instillUIOrder": 1,
   111            "required": [],
   112            "title": "Body"
   113          },
   114          "header": {
   115            "description": "The HTTP header of the response",
   116            "instillFormat": "semi-structured/object",
   117            "instillUIOrder": 2,
   118            "required": [],
   119            "title": "Header",
   120            "type": "object"
   121          },
   122          "status_code": {
   123            "description": "The HTTP status code of the response",
   124            "instillFormat": "integer",
   125            "instillUIOrder": 0,
   126            "title": "Status Code",
   127            "type": "integer"
   128          }
   129        },
   130        "required": [
   131          "status_code",
   132          "body",
   133          "header"
   134        ],
   135        "title": "Output",
   136        "type": "object"
   137      }
   138    },
   139    "TASK_DELETE": {
   140      "instillShortDescription": "Send a HTTP DELETE request.",
   141      "input": {
   142        "$ref": "#/$defs/inputWithBody"
   143      },
   144      "output": {
   145        "$ref": "#/$defs/output"
   146      }
   147    },
   148    "TASK_GET": {
   149      "instillShortDescription": "Send a HTTP GET request.",
   150      "input": {
   151        "$ref": "#/$defs/inputWithoutBody"
   152      },
   153      "output": {
   154        "$ref": "#/$defs/output"
   155      }
   156    },
   157    "TASK_HEAD": {
   158      "instillShortDescription": "Send a HTTP HEAD request.",
   159      "input": {
   160        "$ref": "#/$defs/inputWithoutBody"
   161      },
   162      "output": {
   163        "$ref": "#/$defs/output"
   164      }
   165    },
   166    "TASK_OPTIONS": {
   167      "instillShortDescription": "Send a HTTP OPTIONS request.",
   168      "input": {
   169        "$ref": "#/$defs/inputWithBody"
   170      },
   171      "output": {
   172        "$ref": "#/$defs/output"
   173      }
   174    },
   175    "TASK_PATCH": {
   176      "instillShortDescription": "Send a HTTP PATCH request.",
   177      "input": {
   178        "$ref": "#/$defs/inputWithBody"
   179      },
   180      "output": {
   181        "$ref": "#/$defs/output"
   182      }
   183    },
   184    "TASK_POST": {
   185      "instillShortDescription": "Send a HTTP POST request.",
   186      "input": {
   187        "$ref": "#/$defs/inputWithBody"
   188      },
   189      "output": {
   190        "$ref": "#/$defs/output"
   191      }
   192    },
   193    "TASK_PUT": {
   194      "instillShortDescription": "Send a HTTP PUT request.",
   195      "input": {
   196        "$ref": "#/$defs/inputWithBody"
   197      },
   198      "output": {
   199        "$ref": "#/$defs/output"
   200      }
   201    }
   202  }