-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathraml.yaml
137 lines (137 loc) · 3.88 KB
/
raml.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#%RAML 1.0
title: Raml report
baseUri: 'http://localhost:34285'
version: 1.0.0
annotationTypes:
group: string
/posts:
post:
(group): Posts
description: 'Positive: create blog post'
headers:
Accept:
example: 'application/json, text/plain, */*'
type: string
Content-Type:
example: application/json
type: string
Content-Length:
example: 206
type: number
responses:
'201':
body:
application/json:
type: object
example: |-
{
"data": {
"title": "quite cotton although shadow",
"body": "mood income built field throw badly finest seat accurate ago seldom allow invented exactly past garage baseball",
"thumbnail": "http://lakkik.ng/kupa"
},
"id": 4
}
properties:
data:
type: object
id:
type: number
/1:
get:
(group): Posts
description: 'Positive: show first post'
headers:
Accept:
example: 'application/json, text/plain, */*'
type: string
User-Agent:
example: axios/0.21.4
type: string
responses:
'200':
body:
application/json:
type: object
example: |-
{
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto",
"thumbnail": null
}
properties:
id:
type: number
title:
type: string
body:
type: string
thumbnail:
type: nil
'/:id':
get:
(group): Posts
description: 'Positive: show single post by id'
headers:
Accept:
example: 'application/json, text/plain, */*'
type: string
User-Agent:
example: axios/0.21.4
type: string
responses:
'200':
body:
application/json:
type: object
example: |-
{
"id": 2,
"title": "qui est esse",
"body": "est rerum tempore vitae\nsequi sint nihil reprehenderit dolor beatae ea dolores neque\nfugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\nqui aperiam non debitis possimus qui neque nisi nulla",
"thumbnail": "https://via.placeholder.com/150/24f355"
}
properties:
id:
type: number
title:
type: string
body:
type: string
thumbnail:
type: string
'/:id#post_not_found':
get:
(group): Posts
description: 'Negative: post not found'
headers:
Accept:
example: 'application/json, text/plain, */*'
type: string
User-Agent:
example: axios/0.21.4
type: string
responses:
'404':
body:
application/json:
type: object
example: {}
'/:id#bad_id':
get:
(group): Posts
description: 'Negative: bad id'
headers:
Accept:
example: 'application/json, text/plain, */*'
type: string
User-Agent:
example: axios/0.21.4
type: string
responses:
'404':
body:
application/json:
type: object
example: {}