forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathecho.yaml
43 lines (43 loc) · 906 Bytes
/
echo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
swagger: '2.0'
info:
version: 1.0.0
title: Echo
description: |
#### Echos back every URL, method, parameter and header
Feel free to make a path or an operation and use **Try Operation** to test it. The echo server will
render back everything.
schemes:
- http
host: mazimi-prod.apigee.net
basePath: /echo
paths:
/:
get:
responses:
200:
description: Echo GET
post:
responses:
200:
description: Echo POST
parameters:
- name: name
in: formData
description: name
type: string
- name: year
in: formData
description: year
type: string
/test-path/{id}:
parameters:
- name: id
in: path
description: ID
type: string
required: true
get:
responses:
200:
description: Echo test-path