REST API Resource
The HTTP Request Resource provides an efficient way to communicate with RESTful HTTP APIs, such as your own server's backend.
Properties
Environment Profiles
Prop | profiles |
---|---|
Type | array |
Default | [ { 'baseURL': '', 'headers': [ { 'key': 'Content-Type', 'value': 'application/json' } ], 'environment': '' } ] |
The profiles configured for this resource in an environment
Environment Profile
Prop | profiles[] |
---|---|
Type | object |
Default | undefined |
A profile of this resource for an environment
Base URL
Prop | profiles[].baseURL |
---|---|
Type | string |
Default | undefined |
The base URL for all requests on this resource.
Default Headers
Prop | profiles[].headers |
---|---|
Type | array |
Default | undefined |
The default header values to be used for all requests from this resource.
Header
Prop | profiles[].headers[] |
---|---|
Type | object |
Default | undefined |
A header key-value pair to attach to the request
Header key
Prop | profiles[].headers[].key |
---|---|
Type | string |
Default | undefined |
The header key
Header value
Prop | profiles[].headers[].value |
---|---|
Type | string |
Default | undefined |
The value of the specified header
Environment
Prop | profiles[].environment |
---|---|
Type | string |
Default | undefined |
The name of the environment with which this profile is associated
Actions
Perform HTTP Request
Makes an HTTP request and returns the response body.
Parameter | Type | Default |
---|---|---|
path | string | undefined |
body | string | undefined |
headers | array | undefined |
method | HTTPMethodTypes ("GET" | "POST" | "PUT" | "DELETE" | "OPTIONS" | "PATCH") | GET |
bodyType | CodeEditorInputFieldBodyTypes ("text/plain" | "application/json") | application/json |
Last updated on March 22, 2023