HTTP / REST
Istek provides a full-featured HTTP client supporting all standard methods and advanced features.
Supported Methods
| Method | Description |
|---|---|
GET | Retrieve resources |
POST | Create new resources |
PUT | Replace existing resources |
PATCH | Partially update resources |
DELETE | Remove resources |
HEAD | Get headers only |
OPTIONS | Get allowed methods |
Making a Request
Basic GET Request
- Select HTTP from the protocol dropdown
- Choose GET method
- Enter URL:
https://api.example.com/users - Click Run
POST Request with Body
- Select POST method
- Enter URL:
https://api.example.com/users - Go to Body tab
- Select JSON content type
- Enter your JSON body:
{
"name": "John Doe",
"email": "[email protected]"
}
- Click Run
Query Parameters
Add query parameters in the Params tab:
| Key | Value |
|---|---|
page | 1 |
limit | 10 |
sort | name |
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:
| Header | Value |
|---|---|
Authorization | Bearer {{TOKEN}} |
Content-Type | application/json |
Accept | application/json |
tip
When you select a body type (JSON, XML, etc.), Istek automatically adds the appropriate Content-Type header.
Body Types
| Type | Content-Type | Use Case |
|---|---|---|
| JSON | application/json | Most REST APIs |
| XML | application/xml | SOAP, legacy APIs |
| HTML | text/html | HTML content |
| Raw | text/plain | Plain 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
}