File tree Expand file tree Collapse file tree 5 files changed +40
-55
lines changed
Expand file tree Collapse file tree 5 files changed +40
-55
lines changed Original file line number Diff line number Diff line change 1- openapi : " 3.1.0"
1+ openapi : 3.1.0
22info :
33 version : 1.0.0
44 title : Imaginary town
55servers :
6- - url : https://example.com
6+ - url : ' https://example.com'
77 description : Example server
88paths :
9- ' /buildings ' :
9+ /buildings :
1010 get :
1111 summary : All buildings
1212 operationId : buildingsList
1818 schema :
1919 type : array
2020 items :
21- $ref : " #/components/schemas/Building"
22-
21+ $ref : ' #/components/schemas/Building'
2322 ' /buildings/{buildingId} ' :
2423 get :
2524 summary : Specific building
3736 content :
3837 application/json :
3938 schema :
40- $ref : " #/components/schemas/Building"
41-
42- ' /locations ' :
39+ $ref : ' #/components/schemas/Building'
40+ /locations :
4341 get :
4442 summary : All locations
4543 operationId : locationList
@@ -58,16 +56,15 @@ paths:
5856 example : 44
5957 name :
6058 type : string
61- example : " North Village"
62-
59+ example : North Village
6360components :
6461 schemas :
6562 Building :
6663 type : object
6764 properties :
6865 building :
6966 type : string
70- example : " house"
67+ example : house
7168 location_id :
7269 type : integer
7370 example : 44
Original file line number Diff line number Diff line change 1- openapi : " 3.1.0"
1+ openapi : 3.1.0
22info :
33 version : 1.0.0
44 title : Imaginary town
55servers :
6- - url : https://example.com
6+ - url : ' https://example.com'
77 description : Example server
88paths :
9- ' /buildings ' :
9+ /buildings :
1010 get :
1111 summary : All buildings
1212 operationId : buildingsList
1818 schema :
1919 type : array
2020 items :
21- $ref : " #/components/schemas/Building"
22-
21+ $ref : ' #/components/schemas/Building'
2322 ' /buildings/{buildingId} ' :
2423 get :
2524 summary : Specific building
3736 content :
3837 application/json :
3938 schema :
40- $ref : " #/components/schemas/Building"
41-
42- ' /locations ' :
39+ $ref : ' #/components/schemas/Building'
40+ /locations :
4341 get :
4442 summary : All locations
4543 operationId : locationList
@@ -58,16 +56,15 @@ paths:
5856 example : 44
5957 name :
6058 type : string
61- example : " North Village"
62-
59+ example : North Village
6360components :
6461 schemas :
6562 Building :
6663 type : object
6764 properties :
6865 building :
6966 type : string
70- example : " house"
67+ example : house
7168 location_id :
7269 type : integer
7370 example : 44
Original file line number Diff line number Diff line change 1- openapi : " 3.1.0"
1+ openapi : 3.1.0
22info :
33 version : 1.0.0
44 title : Imaginary town
55servers :
6- - url : https://example.com
6+ - url : ' https://example.com'
77 description : Example server
88paths :
9- ' /buildings ' :
9+ /buildings :
1010 get :
1111 summary : All buildings
1212 operationId : buildingsList
1818 schema :
1919 type : array
2020 items :
21- $ref : " #/components/schemas/Building"
22-
21+ $ref : ' #/components/schemas/Building'
2322 ' /buildings/{buildingId} ' :
2423 get :
2524 summary : Specific building
3736 content :
3837 application/json :
3938 schema :
40- $ref : " #/components/schemas/Building"
41-
42- ' /locations ' :
39+ $ref : ' #/components/schemas/Building'
40+ /locations :
4341 get :
4442 summary : All locations
4543 operationId : locationList
@@ -58,16 +56,15 @@ paths:
5856 example : 44
5957 name :
6058 type : string
61- example : " North Village"
62-
59+ example : North Village
6360components :
6461 schemas :
6562 Building :
6663 type : object
6764 properties :
6865 building :
6966 type : string
70- example : " house"
67+ example : house
7168 location_id :
7269 type : integer
7370 example : 44
Original file line number Diff line number Diff line change 1- openapi : " 3.1.0"
1+ openapi : 3.1.0
22info :
33 version : 1.0.0
44 title : Imaginary town
55servers :
6- - url : https://example.com
6+ - url : ' https://example.com'
77 description : Example server
88paths :
9- ' /buildings ' :
9+ /buildings :
1010 get :
1111 summary : All buildings
1212 operationId : buildingsList
1818 schema :
1919 type : array
2020 items :
21- $ref : " #/components/schemas/Building"
22-
21+ $ref : ' #/components/schemas/Building'
2322 ' /buildings/{buildingId} ' :
2423 get :
2524 summary : Specific building
3736 content :
3837 application/json :
3938 schema :
40- $ref : " #/components/schemas/Building"
41-
42- ' /locations ' :
39+ $ref : ' #/components/schemas/Building'
40+ /locations :
4341 get :
4442 summary : All locations
4543 operationId : locationList
@@ -58,16 +56,15 @@ paths:
5856 example : 44
5957 name :
6058 type : string
61- example : " North Village"
62-
59+ example : North Village
6360components :
6461 schemas :
6562 Building :
6663 type : object
6764 properties :
6865 building :
6966 type : string
70- example : " house"
67+ example : house
7168 location_id :
7269 type : integer
7370 example : 44
Original file line number Diff line number Diff line change 1- openapi : " 3.1.0"
1+ openapi : 3.1.0
22info :
33 version : 1.0.0
44 title : Imaginary town
55servers :
6- - url : https://example.com
6+ - url : ' https://example.com'
77 description : Example server
88paths :
9- ' /buildings ' :
9+ /buildings :
1010 get :
1111 summary : All buildings
1212 operationId : buildingsList
1818 schema :
1919 type : array
2020 items :
21- $ref : " #/components/schemas/Building"
22-
21+ $ref : ' #/components/schemas/Building'
2322 ' /buildings/{buildingId} ' :
2423 get :
2524 summary : Specific building
3736 content :
3837 application/json :
3938 schema :
40- $ref : " #/components/schemas/Building"
41-
42- ' /locations ' :
39+ $ref : ' #/components/schemas/Building'
40+ /locations :
4341 get :
4442 summary : All locations
4543 operationId : locationList
@@ -58,16 +56,15 @@ paths:
5856 example : 44
5957 name :
6058 type : string
61- example : " North Village"
62-
59+ example : North Village
6360components :
6461 schemas :
6562 Building :
6663 type : object
6764 properties :
6865 building :
6966 type : string
70- example : " house"
67+ example : house
7168 location_id :
7269 type : integer
7370 example : 44
You can’t perform that action at this time.
0 commit comments