-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
118 lines (118 loc) · 2.66 KB
/
swagger.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
swagger: "2.0"
info:
description: "This is a sample diff server."
version: "1.0.0"
title: "Swagger diff server"
basePath: "/v1"
schemes:
- "http"
paths:
/diff/{diffId}/left:
put:
tags:
- "left"
summary: "Update an left side"
description: ""
operationId: "updateLeft"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- name: "diffId"
in: "path"
description: "diff of ID to update"
required: true
type: "integer"
format: "int64"
- in: "body"
name: "body"
description: "Left object that needs to be added for the diff"
required: true
schema:
$ref: "#/definitions/RequestBody"
responses:
"201":
description: "Created"
"400":
description: "Bad Request"
/diff/{diffId}/right:
put:
tags:
- "right"
summary: "Update an right side"
description: ""
operationId: "updateRight"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- name: "diffId"
in: "path"
description: "ID of content to update"
required: true
type: "integer"
format: "int64"
- in: "body"
name: "body"
description: "Right object that needs to be added for the diff"
required: true
schema:
$ref: "#/definitions/RequestBody"
responses:
"201":
description: "Created"
"400":
description: "Bad Request"
/diff/{diffId}/:
get:
tags:
- "diff"
summary: "get status of diff"
description: ""
operationId: "getDiff"
produces:
- "application/json"
parameters:
- name: "diffId"
in: "path"
description: "ID of content to update"
required: true
type: "integer"
format: "int64"
responses:
"200":
description: "OK"
schema:
$ref: "#/definitions/ResponseBody"
"404":
description: "Not Found"
definitions:
ResponseBody:
type: "object"
properties:
diffResultType:
type: "string"
example: Equals or ContentDoNotMatch
enum:
- "Equals"
- "ContentDoNotMatch"
- "SizeDoNotMatch"
diffs:
$ref: "#/definitions/Diffs"
RequestBody:
type: "object"
properties:
data:
type: "string"
Diffs:
type: "array"
items:
properties:
offset:
type: "integer"
format: "int64"
length:
type: "integer"
format: "int64"