How to use OpenAPI
- 1. Paste JSON or YAML. OpenAPI 3.x documents work.
- 2. Read the formatted JSON. YAML is parsed in this tab.
- 3. Copy cURL and fetch. Built from the first path and method.
- 4. Nothing is requested. Servers in the spec are only used as a URL template.
About this tool
An OpenAPI file is both documentation and a request template. This tool formats the document and emits a first-path cURL/fetch pair so you can try the operation in your own client without a code generator.
First path only
The snippet uses the first path item and its first method. Servers[0] becomes the origin when present.
No live try-it
PureDevKit never sends the request. Fill auth and path params yourself.
Code examples
Path
paths:
/health:
get:
summary: ok