A simple Burp Suite extension (Jython 2.7) that imports an OpenAPI specification and generates HTTP requests you can copy to clipboard or send directly to Repeater.
- Import OpenAPI v3 (JSON format) and generate example requests
- UI fields for:
- Target host (with optional
:port) - HTTPS toggle
- Authorization (Bearer token)
- Extra headers
- Target host (with optional
- Normalize CRLF line endings to ensure valid raw HTTP
- Copy raw requests to clipboard or send directly to Repeater
- Download Jython standalone 2.7.x and add it in Burp → Extender → Options → Python Environment.
- In Burp → Extender → Extensions → Add:
- Type: Python
- Select
src/openapi_to_repeater.py
- A new OpenAPI→Repeater tab will appear in Burp.
- Click Load OpenAPI JSON and select your spec file.
- Enter target host (with optional port) and adjust HTTPS checkbox.
- (Optional) Add a Bearer token and any extra headers.
- Select a request from the list.
- Send to Repeater → pushes request directly into Repeater
- Copy Raw → copies the raw HTTP request to clipboard
- View Raw → preview the generated request
If your OpenAPI specification is in YAML, convert it to JSON before loading:
pip install pyyaml
python -c "import yaml,json,sys; print(json.dumps(yaml.safe_load(open(sys.argv[1]))))" openapi.yaml > openapi.json