-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathswagger.yml
83 lines (83 loc) · 1.8 KB
/
swagger.yml
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
---
swagger: "2.0"
info:
version: "2017-10-19T19:49:26Z"
title: "WebDevTask"
host: "devtask.t12y.net"
schemes:
- "https"
paths:
/assets:
get:
produces:
- "application/json"
responses:
200:
description: "200 response"
schema:
$ref: "#/definitions/AssetsList"
options:
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
Access-Control-Allow-Methods:
type: "string"
Access-Control-Allow-Headers:
type: "string"
/results:
post:
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- in: "body"
name: "PuzzleResult"
required: true
schema:
$ref: "#/definitions/PuzzleResult"
responses:
200:
description: "200 response"
schema:
$ref: "#/definitions/ResultResponse"
options:
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "200 response"
headers:
Access-Control-Allow-Origin:
type: "string"
Access-Control-Allow-Methods:
type: "string"
Access-Control-Allow-Headers:
type: "string"
definitions:
ResultResponse:
type: "object"
properties:
msg:
type: "string"
title: "ResultResponse"
PuzzleResult:
type: "object"
properties:
time:
type: "number"
title: "PuzzleResult"
AssetsList:
title: "AssetList"
type: "array"
items:
type: "string"