File tree 4 files changed +63
-65
lines changed
4 files changed +63
-65
lines changed Original file line number Diff line number Diff line change 7
7
"termsOfService" : " http://helloreverb.com/terms/" ,
8
8
"contact" : {
9
9
"name" : " Wordnik API Team" ,
10
- "email" : " foo@bar.baz " ,
10
+ "email" : " foo@example.com " ,
11
11
"url" : " http://madskristensen.net"
12
12
},
13
13
"license" : {
224
224
}
225
225
}
226
226
}
227
- }
227
+ }
Original file line number Diff line number Diff line change 6
6
termsOfService : http://helloreverb.com/terms/
7
7
contact :
8
8
name : Wordnik API Team
9
- email : foo@bar.baz
9
+ email : foo@example.com
10
10
url : http://madskristensen.net
11
11
license :
12
- type : MIT
12
+ name : MIT
13
13
url : http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
14
- host : http:// petstore.swagger.wordnik.com
14
+ host : petstore.swagger.wordnik.com
15
15
basePath : /api
16
16
schemes :
17
17
- http
87
87
in : path
88
88
description : ID of pet to fetch
89
89
required : true
90
- schema :
91
- type : integer
92
- format : int64
90
+ type : integer
91
+ format : int64
93
92
responses :
94
93
200 :
95
94
description : pet response
@@ -109,9 +108,8 @@ paths:
109
108
in : path
110
109
description : ID of pet to delete
111
110
required : true
112
- schema :
113
- type : integer
114
- format : int64
111
+ type : integer
112
+ format : int64
115
113
responses :
116
114
204 :
117
115
description : pet deleted
Original file line number Diff line number Diff line change 1
1
swagger : 2.0
2
- info :
2
+ info :
3
3
version : 1.0.0
4
4
title : Swagger Petstore
5
+ license :
6
+ name : MIT
5
7
host : petstore.swagger.wordnik.com
6
8
basePath : /v1
7
- license :
8
- name : MIT
9
- schemes :
9
+ schemes :
10
10
- http
11
- consumes :
11
+ consumes :
12
12
- application/json
13
- produces :
13
+ produces :
14
14
- application/json
15
- paths :
16
- /pets :
17
- get :
15
+ paths :
16
+ /pets :
17
+ get :
18
18
summary : List all pets
19
19
operationId : listPets
20
- tags :
20
+ tags :
21
21
- pets
22
- parameters :
22
+ parameters :
23
23
- name : limit
24
24
in : query
25
25
description : How many items to return at one time (max 100)
26
26
required : false
27
27
type : integer
28
28
format : int32
29
- responses :
30
- 200 :
29
+ responses :
30
+ 200 :
31
31
description : An paged array of pets
32
- headers :
33
- - x-next :
32
+ headers :
33
+ - x-next :
34
34
type : string
35
35
description : A link to the next page of responses
36
- schema :
36
+ schema :
37
37
$ref : Pets
38
- default :
38
+ default :
39
39
description : unexpected error
40
- schema :
40
+ schema :
41
41
$ref : Error
42
- post :
43
- summary : Create a pet
44
- operationId : createPets
45
- tags :
46
- - pets
47
- responses :
48
- 201 :
49
- description : Null response
50
- default :
51
- description : unexpected error
52
- schema :
53
- $ref : Error
54
- /pets/{petId} :
55
- get :
42
+ post :
43
+ summary : Create a pet
44
+ operationId : createPets
45
+ tags :
46
+ - pets
47
+ responses :
48
+ 201 :
49
+ description : Null response
50
+ default :
51
+ description : unexpected error
52
+ schema :
53
+ $ref : Error
54
+ /pets/{petId} :
55
+ get :
56
56
summary : Info for a specific pet
57
57
operationId : showPetById
58
- tags :
58
+ tags :
59
59
- pets
60
- parameters :
60
+ parameters :
61
61
- name : petId
62
62
in : path
63
63
description : The id of the pet to retrieve
64
64
type : string
65
- responses :
66
- 200 :
65
+ responses :
66
+ 200 :
67
67
description : Expected response to a valid request
68
- schema :
68
+ schema :
69
69
$ref : Pets
70
- default :
70
+ default :
71
71
description : unexpected error
72
- schema :
72
+ schema :
73
73
$ref : Error
74
- definitions :
75
- Pet :
76
- required :
74
+ definitions :
75
+ Pet :
76
+ required :
77
77
- id
78
78
- name
79
- properties :
80
- id :
79
+ properties :
80
+ id :
81
81
type : integer
82
82
format : int64
83
- name :
83
+ name :
84
84
type : string
85
- tag :
85
+ tag :
86
86
type : string
87
- Pets :
87
+ Pets :
88
88
type : array
89
- items :
89
+ items :
90
90
$ref : Pet
91
- Error :
92
- required :
91
+ Error :
92
+ required :
93
93
- code
94
94
- message
95
- properties :
96
- code :
95
+ properties :
96
+ code :
97
97
type : integer
98
98
format : int32
99
- message :
99
+ message :
100
100
type : string
Original file line number Diff line number Diff line change 301
301
"maximum" : { "$ref" : " http://json-schema.org/draft-04/schema#/properties/maximum" },
302
302
"exclusiveMaximum" : { "$ref" : " http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" },
303
303
"minimum" : { "$ref" : " http://json-schema.org/draft-04/schema#/properties/minimum" },
304
- "exclusiveMinimum" : { "$ref" : " http://json-schema.org/draft-04/schema#/properties/exclusiveMininum " },
304
+ "exclusiveMinimum" : { "$ref" : " http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum " },
305
305
"maxLength" : { "$ref" : " http://json-schema.org/draft-04/schema#/definitions/positiveInteger" },
306
306
"minLength" : { "$ref" : " http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" },
307
307
"pattern" : { "$ref" : " http://json-schema.org/draft-04/schema#/properties/pattern" },
You can’t perform that action at this time.
0 commit comments