Skip to main content

HTTP / REST

Istek provides a full-featured HTTP client supporting all standard methods and advanced features.

Supported Methods​

MethodDescription
GETRetrieve resources
POSTCreate new resources
PUTReplace existing resources
PATCHPartially update resources
DELETERemove resources
HEADGet headers only
OPTIONSGet allowed methods

Making a Request​

Basic GET Request​

  1. Select HTTP from the protocol dropdown
  2. Choose GET method
  3. Enter URL: https://api.example.com/users
  4. Click Run

POST Request with Body​

  1. Select POST method
  2. Enter URL: https://api.example.com/users
  3. Go to Body tab
  4. Select JSON content type
  5. Enter your JSON body:
{
"name": "John Doe",
"email": "john@example.com"
}
  1. Click Run

Query Parameters​

Add query parameters in the Params tab:

KeyValue
page1
limit10
sortname

These will be appended to your URL: ?page=1&limit=10&sort=name

Required Parameters​

Parameters imported from OpenAPI specs may be marked as required. These are indicated with a red badge and must have a value before sending.

Headers​

Common headers can be added in the Headers tab:

HeaderValue
AuthorizationBearer {{TOKEN}}
Content-Typeapplication/json
Acceptapplication/json
tip

When you select a body type (JSON, XML, etc.), Istek automatically adds the appropriate Content-Type header.

Body Types​

TypeContent-TypeUse Case
JSONapplication/jsonMost REST APIs
XMLapplication/xmlSOAP, legacy APIs
HTMLtext/htmlHTML content
Rawtext/plainPlain text

JSON Formatting​

When using JSON body:

  • Format: Prettify your JSON with proper indentation
  • Minify: Compress JSON to a single line
  • Syntax errors are highlighted in real-time

Response​

The response panel shows:

  • Status Code: Color-coded (green for 2xx, yellow for 3xx, red for 4xx/5xx)
  • Response Time: In milliseconds
  • Size: Response body size
  • Headers: Response headers in a collapsible section
  • Body: Syntax-highlighted response with JSON formatting

Using Variables​

Replace hardcoded values with variables:

URL: {{API_URL}}/users/{{USER_ID}}
Header: Authorization: Bearer {{AUTH_TOKEN}}
Body: {"environment": "{{ENV_NAME}}"}

Variables are replaced when you click Run.

Examples​

Playground Example​

Using the built-in playground:

Method: GET
URL: http://localhost:19510/api/products

Response:

{
"success": true,
"data": [
{
"id": 1,
"name": "Laptop Pro",
"price": 1299.99,
"category": "Electronics"
}
]
}

Create Product​

Method: POST
URL: http://localhost:19510/api/products
Body:
{
"name": "New Product",
"price": 99.99,
"category": "Gadgets",
"inStock": true
}