Import & Export
Istek supports importing collections from popular formats and tools.
Supported Formats
| Format | Import | Description |
|---|---|---|
| OpenAPI 3.x | ✓ | OpenAPI/Swagger specifications |
| Swagger 2.0 | ✓ | Legacy Swagger format |
| Postman | ✓ | Postman collection v2.1 |
Importing from OpenAPI
From File
- Click Import in the sidebar
- Select OpenAPI/Swagger
- Choose From File
- Select your
.yamlor.jsonfile - Click Import
From URL
- Click Import in the sidebar
- Select OpenAPI/Swagger
- Choose From URL
- Enter the spec URL:
https://api.example.com/openapi.json - Click Import
What Gets Imported
| OpenAPI Element | Istek Equivalent |
|---|---|
paths | Request endpoints |
parameters | Query params, headers |
requestBody | Request body |
responses | Response schemas (for mocks) |
servers | Base URL variable |
Example
# petstore.yaml
openapi: 3.0.0
info:
title: Pet Store API
version: 1.0.0
servers:
- url: https://petstore.example.com/v1
paths:
/pets:
get:
summary: List all pets
parameters:
- name: limit
in: query
schema:
type: integer
responses:
'200':
description: A list of pets
Imported as:
- Collection: "Pet Store API"
- Request: GET /pets
- Parameter: limit (query)
- Base URL:
{{API_URL}}=https://petstore.example.com/v1
Importing from Postman
Export from Postman
- In Postman, select your collection
- Click Export
- Choose Collection v2.1
- Save the JSON file
Import to Istek
- Click Import in the sidebar
- Select Postman
- Choose your exported
.jsonfile - Click Import
What Gets Imported
| Postman Element | Istek Equivalent |
|---|---|
| Collection | Collection |
| Folders | (flattened) |
| Requests | Requests |
| Variables | Global variables |
| Headers | Headers |
| Body | Request body |
Postman Variables
Postman variables like {{baseUrl}} are converted to Istek variables.
Import Options
Auto-create Variables
When importing, Istek can:
- Create variables from server URLs
- Extract common values as variables
Merge vs Replace
| Option | Behavior |
|---|---|
| Create New | New collection with unique name |
| Merge | Add to existing collection |
| Replace | Overwrite existing collection |
Response Schemas
When importing OpenAPI specs, response schemas are stored for:
- Mock Server: Generate realistic fake data
- Validation: Validate responses against schema
Schema Storage
{
"request": {
"url": "/pets",
"method": "GET",
"responseSchema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Pet"
}
}
}
}
Common Import Sources
Public APIs
Many APIs publish OpenAPI specs:
| API | Spec URL |
|---|---|
| GitHub | https://api.github.com/openapi.json |
| Stripe | https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json |
| Twilio | https://www.twilio.com/docs/openapi |
Local Development
Import specs from local services:
http://localhost:3000/api-docs
http://localhost:8080/v3/api-docs
Troubleshooting
Invalid Format
- Verify the file is valid JSON/YAML
- Check OpenAPI version (2.0 or 3.x)
- Validate with an online validator
Missing Endpoints
- Some endpoints may be skipped if malformed
- Check the import summary for warnings
Variable Conflicts
- Existing variables are not overwritten
- Review imported variables in the Variable Manager
Best Practices
Keep Specs Updated
Re-import when your API changes to stay in sync.
Review After Import
Check imported requests for accuracy and completeness.
Organize Collections
Rename imported collections to match your naming convention.
Variable Management
After import, review and organize variables in the Variable Manager.