mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
943c28cc12
* initial commit * Add prerelease tests for Unit Test feature * Add test to import oa3 spec into design doc
106 lines
2.3 KiB
YAML
106 lines
2.3 KiB
YAML
openapi: 3.0.0
|
|
info:
|
|
description: this is an example description in an OpenAPI Doc
|
|
title: Smoke Test API server
|
|
version: 1.0.0
|
|
servers:
|
|
- url: http://localhost:4010
|
|
tags:
|
|
- name: Misc
|
|
- name: Auth
|
|
- name: File
|
|
paths:
|
|
/pets/{id}:
|
|
get:
|
|
operationId: echoId
|
|
summary: Echo id
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
schema:
|
|
type: string
|
|
required: true
|
|
tags:
|
|
- Misc
|
|
responses:
|
|
'200':
|
|
description: A JSON object containing the id
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
id:
|
|
type: string
|
|
/file/dummy.csv:
|
|
get:
|
|
operationId: dummyCsvFile
|
|
summary: Get dummy CSV file
|
|
tags:
|
|
- File
|
|
responses:
|
|
'200':
|
|
description: loaded dummy csv file
|
|
content:
|
|
application/csv:
|
|
schema:
|
|
$ref: '#/components/schemas/File'
|
|
/file/dummy.pdf:
|
|
get:
|
|
operationId: dummyPdfFile
|
|
summary: Get dummy PDF file
|
|
tags:
|
|
- File
|
|
responses:
|
|
'200':
|
|
description: loaded dummy CSV file
|
|
content:
|
|
application/pdf:
|
|
schema:
|
|
$ref: '#/components/schemas/File'
|
|
/auth/basic:
|
|
get:
|
|
operationId: basicAuth
|
|
summary: Make basic auth request
|
|
security:
|
|
- basicAuth: []
|
|
tags:
|
|
- Auth
|
|
responses:
|
|
'200':
|
|
description: successfully authed
|
|
content:
|
|
text/plain:
|
|
schema:
|
|
$ref: '#/components/schemas/String'
|
|
/delay/seconds/{duration}:
|
|
get:
|
|
operationId: delayByDuration
|
|
summary: Delay by seconds
|
|
parameters:
|
|
- name: duration
|
|
in: path
|
|
schema:
|
|
type: integer
|
|
required: true
|
|
tags:
|
|
- Misc
|
|
responses:
|
|
'200':
|
|
description: delayed
|
|
content:
|
|
text/plain:
|
|
schema:
|
|
$ref: '#/components/schemas/String'
|
|
components:
|
|
schemas:
|
|
File:
|
|
type: string
|
|
format: binary
|
|
String:
|
|
type: string
|
|
securitySchemes:
|
|
basicAuth:
|
|
type: http
|
|
scheme: basic
|
|
|