forked from yukinarit/pyserde
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.yml
More file actions
46 lines (46 loc) · 864 Bytes
/
swagger.yml
File metadata and controls
46 lines (46 loc) · 864 Bytes
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
44
45
46
swagger: 2
info:
title: Echo API
description: Simple Rest Echo
version: "1.0.0"
host: "localhost:8002"
schemes:
- http
basePath: /v1
produces:
- application/json
paths:
/echo:
get:
description: "Returns the 'message' to the caller"
operationId: "echo"
parameters:
- name: headerParam
in: header
type: string
required: false
- name: message
# in: query
type: string
required: true
responses:
200:
description: "Success"
default:
description: "Error"
definitions:
EchoResponse:
required:
- message
properties:
message:
type: string
Error:
properties:
code:
type: integer
format: int32
message:
type: string
fields:
type: string