Skip to content

Commit df974a9

Browse files
committed
Update $ref references
1 parent 7fe82aa commit df974a9

File tree

1 file changed

+83
-70
lines changed

1 file changed

+83
-70
lines changed
Lines changed: 83 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,144 +1,157 @@
11
swagger: 2.0
2-
info:
2+
info:
33
version: 1.0.0
44
title: Swagger Petstore
55
description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification
66
termsOfService: http://helloreverb.com/terms/
7-
contact:
7+
contact:
88
name: Wordnik API Team
99
1010
url: http://madskristensen.net
11-
license:
11+
license:
1212
type: MIT
1313
url: http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
1414
host: http://petstore.swagger.wordnik.com
1515
basePath: /api
16-
schemes:
16+
schemes:
1717
- http
18-
consumes:
18+
consumes:
1919
- application/json
20-
produces:
20+
produces:
2121
- application/json
22-
paths:
23-
/pets:
24-
get:
25-
description: Returns all pets from the system that the user has access to
22+
paths:
23+
/pets:
24+
get:
25+
description: |
26+
Returns all pets from the system that the user has access to
27+
Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.
28+
29+
Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.
2630
operationId: findPets
27-
parameters:
31+
parameters:
2832
- name: tags
2933
in: query
3034
description: tags to filter by
3135
required: false
32-
schema:
36+
schema:
3337
type: array
3438
format: csv
35-
items:
39+
items:
3640
type: string
3741
- name: limit
3842
in: query
3943
description: maximum number of results to return
4044
required: false
41-
schema:
45+
schema:
4246
type: integer
4347
format: int32
44-
responses:
45-
200:
48+
responses:
49+
200:
4650
description: pet response
47-
schema:
51+
schema:
4852
type: array
49-
items:
50-
$ref: #/models/Pet
51-
default:
53+
items:
54+
Pet:
55+
$ref: '#/models/Pet'
56+
default:
5257
description: unexpected error
53-
schema:
54-
$ref: #/models/Error
55-
post:
58+
schema:
59+
Error:
60+
$ref: '#/models/Error'
61+
post:
5662
description: Creates a new pet in the store. Duplicates are allowed
5763
operationId: addPet
58-
parameters:
64+
parameters:
5965
- name: pet
6066
in: body
6167
description: Pet to add to the store
6268
required: true
63-
schema:
64-
$ref: #/models/NewPet
65-
responses:
66-
200:
69+
schema:
70+
NewPet:
71+
$ref: '#/models/NewPet'
72+
responses:
73+
200:
6774
description: pet response
68-
schema:
69-
$ref: #/models/Pet
70-
default:
75+
schema:
76+
Pet:
77+
$ref: '#/models/Pet'
78+
default:
7179
description: unexpected error
72-
schema:
73-
$ref: #/models/Error
74-
/pets/{id}:
75-
get:
80+
schema:
81+
Error:
82+
$ref: '#/models/Error'
83+
/pets/{id}:
84+
get:
7685
description: Returns a user based on a single ID, if the user does not have access to the pet
7786
operationId: find pet by id
78-
parameters:
87+
parameters:
7988
- name: id
8089
in: path
8190
description: ID of pet to fetch
8291
required: true
83-
schema:
92+
schema:
8493
type: integer
8594
format: int64
86-
responses:
87-
200:
95+
responses:
96+
200:
8897
description: pet response
89-
schema:
90-
$ref: Pet
91-
default:
98+
schema:
99+
Pet:
100+
$ref: '#/models/Pet'
101+
default:
92102
description: unexpected error
93-
schema:
94-
$ref: Error
95-
delete:
103+
schema:
104+
Error:
105+
$ref: '#/models/Error'
106+
delete:
96107
description: deletes a single pet based on the ID supplied
97108
operationId: deletePet
98-
parameters:
109+
parameters:
99110
- name: id
100111
in: path
101112
description: ID of pet to delete
102113
required: true
103-
schema:
114+
schema:
104115
type: integer
105116
format: int64
106-
responses:
107-
204:
117+
responses:
118+
204:
108119
description: pet deleted
109-
default:
120+
default:
110121
description: unexpected error
111-
schema:
112-
$ref: Error
113-
models:
114-
Pet:
115-
required:
122+
schema:
123+
Error:
124+
$ref: '#/models/Error'
125+
models:
126+
Pet:
127+
required:
116128
- id
117129
- name
118-
properties:
119-
id:
130+
properties:
131+
id:
120132
type: integer
121133
format: int64
122-
name:
134+
name:
123135
type: string
124-
tag:
136+
tag:
125137
type: string
126-
NewPet:
127-
allOf:
128-
- $ref: Pet
129-
- required:
138+
NewPet:
139+
allOf:
140+
- Pet:
141+
$ref: '#/models/Pet'
142+
- required:
130143
- name
131-
properties:
132-
id:
144+
properties:
145+
id:
133146
type: integer
134147
format: int64
135-
Error:
136-
required:
148+
Error:
149+
required:
137150
- code
138151
- message
139-
properties:
140-
code:
152+
properties:
153+
code:
141154
type: integer
142155
format: int32
143-
message:
156+
message:
144157
type: string

0 commit comments

Comments
 (0)