Skip to content

Latest commit

 

History

History
 
 

v0

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
title lang draft description
REST API
en-US
false
Learn about how to set up a VDP REST API component https://github.com/instill-ai/instill-core

The REST API component is a generic component that allows users to make requests to external REST APIs. It can carry out the following tasks:

Release Stage

Alpha

Configuration

The component configuration is defined and maintained here.

Setup

Field Field ID Type Note
Authentication (required) authentication object Authentication method to use for the REST API

Supported Tasks

Get

Send a HTTP GET request.

Input ID Type Description
Task ID (required) task string TASK_GET
Endpoint Url (required) endpoint-url string The API endpoint url
Body output-body-schema string The request body
Output ID Type Description
Status Code status-code integer The HTTP status code of the response
Body body any The body of the response
Header header object The HTTP header of the response

Post

Send a HTTP POST request.

Input ID Type Description
Task ID (required) task string TASK_POST
Endpoint Url (required) endpoint-url string The API endpoint url
Body body any The request body
Body output-body-schema string The JSON schema of output body
Output ID Type Description
Status Code status-code integer The HTTP status code of the response
Body body any The body of the response
Header header object The HTTP header of the response

Patch

Send a HTTP PATCH request.

Input ID Type Description
Task ID (required) task string TASK_PATCH
Endpoint Url (required) endpoint-url string The API endpoint url
Body body any The request body
Body output-body-schema string The JSON schema of output body
Output ID Type Description
Status Code status-code integer The HTTP status code of the response
Body body any The body of the response
Header header object The HTTP header of the response

Put

Send a HTTP PUT request.

Input ID Type Description
Task ID (required) task string TASK_PUT
Endpoint Url (required) endpoint-url string The API endpoint url
Body body any The request body
Body output-body-schema string The JSON schema of output body
Output ID Type Description
Status Code status-code integer The HTTP status code of the response
Body body any The body of the response
Header header object The HTTP header of the response

Delete

Send a HTTP DELETE request.

Input ID Type Description
Task ID (required) task string TASK_DELETE
Endpoint Url (required) endpoint-url string The API endpoint url
Body body any The request body
Body output-body-schema string The JSON schema of output body
Output ID Type Description
Status Code status-code integer The HTTP status code of the response
Body body any The body of the response
Header header object The HTTP header of the response

Head

Send a HTTP HEAD request.

Input ID Type Description
Task ID (required) task string TASK_HEAD
Endpoint Url (required) endpoint-url string The API endpoint url
Body output-body-schema string The request body
Output ID Type Description
Status Code status-code integer The HTTP status code of the response
Body body any The body of the response
Header header object The HTTP header of the response

Options

Send a HTTP OPTIONS request.

Input ID Type Description
Task ID (required) task string TASK_OPTIONS
Endpoint Url (required) endpoint-url string The API endpoint url
Body body any The request body
Body output-body-schema string The JSON schema of output body
Output ID Type Description
Status Code status-code integer The HTTP status code of the response
Body body any The body of the response
Header header object The HTTP header of the response