GET
, POST
, PUT
, PATCH
, and DELETE
methods.
GET
, POST
.https://api.openweathermap.org/data/2.5/weather?q=@{payload.city}&appid=@{vault.openweather_key}&units=metric
.text
or JSON
.POST
, PUT
, and PATCH
requests.4xx
or 5xx
status code), it outputs a response error. You can access the error details in the next block using the @{message}
variable.
@{result.body}
), which contains the latitude and longitude of the ISShttp://api.open-notify.org/iss-now.json
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Method | Text | - | GET | - |
| Allowed values: GET, POST, PUT, PATCH, DELETE |
URL | Text | Textarea | - | - | - | - |
Headers | Key-Value | - | - | - | - | |
Body type | Text | - | text | - |
| - |
Body | Text | Textarea | - | - | - | - |
Name | Field | Type | Description |
---|---|---|---|
Success | - | success | The request was successful. |
Response error | - | error | The connection was established successfully but an error response code was received or the response was invalid. |
Connection error | - | error | The connection couldn’t be established. |