-
Notifications
You must be signed in to change notification settings - Fork 0
/
swaggerDemo.yaml
55 lines (55 loc) · 1.15 KB
/
swaggerDemo.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
44
45
46
47
48
49
50
51
52
53
54
55
swagger: '2.0'
info:
version: 0.0.1
title: contract standard demo
schemes:
- http
consumes:
- application/json
produces:
- application/json
paths:
/ResourceA:
post:
parameters:
- $ref: './commons.yaml#/parameters/AppId'
- name: DemoReq
in: body
required: true
schema:
$ref: '#/definitions/ExtensionObj'
responses:
200:
schema:
$ref: '#/definitions/DemoResponse'
definitions:
DemoResponse:
allOf:
- $ref: './commons.yaml#/definitions/CommonResponse'
- type: object
required:
- body
properties:
body:
$ref: '#/definitions/DemoBody'
DemoBody:
type: object
properties:
field1:
$ref: '#/definitions/OneDimensionData'
field2:
$ref: './commons.yaml#/definitions/RolldownRate'
OneDimensionData:
type: object
description: one dimension reference data
additionalProperties:
type: string
DemoRequest:
allOf:
- $ref: './commons.yaml#/definitions/RolldownRate'
- type: object
required:
- text
properties:
text:
type: string