Skip to main content

HTTP

What

HTTP Request is a simple segment to return any json data from any HTTP call.

Sample Configuration

{
"type": "http",
"style": "diamond",
"foreground": "#ffffff",
"background": "#c386f1",
"leading_diamond": "",
"trailing_diamond": "",
"template": "{{ .Result }}",
"properties": {
"url": "https://jsonplaceholder.typicode.com/posts/1",
"method": "GET"
}
}

Properties

NameTypeDefaultDescription
urlstring``The HTTP URL you want to call, supports templates
methodstringGETThe HTTP method to use

Template (info)

default template
{{ .Body }}

Properties

NameTypeDescription
.Body.propertystringReplace .property with the property you want to display