github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1237/fixture-1237.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "description": "This is a sample server sg server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. filters.", 5 "version": "1.0.0", 6 "title": "Swagger Sg", 7 "termsOfService": "http://swagger.io/terms/", 8 "contact": { 9 "email": "apiteam@swagger.io" 10 }, 11 "license": { 12 "name": "Apache 2.0", 13 "url": "http://www.apache.org/licenses/LICENSE-2.0.html" 14 } 15 }, 16 "host": "localhost:32260", 17 "basePath": "/ccmts-config/v2", 18 "tags": [ 19 { 20 "name": "sg", 21 "description": "Everything about your sg", 22 "externalDocs": { 23 "description": "Find out more", 24 "url": "http://swagger.io" 25 } 26 }, 27 { 28 "name": "global", 29 "description": "Everything about your global settings" 30 } 31 ], 32 "schemes": [ 33 "http" 34 ], 35 "paths": { 36 "/sg": { 37 "put": { 38 "tags": [ 39 "sg" 40 ], 41 "summary": "Add a new sg to the store", 42 "description": "", 43 "operationId": "add sg", 44 "consumes": [ 45 "application/json" 46 ], 47 "produces": [ 48 "application/json" 49 ], 50 "parameters": [ 51 { 52 "in": "body", 53 "name": "body", 54 "description": "sg object that needs to be added to the store", 55 "required": true, 56 "schema": { 57 "$ref": "#/definitions/sg" 58 } 59 } 60 ], 61 "responses": { 62 "405": { 63 "description": "Invalid input" 64 } 65 } 66 } 67 }, 68 "/sg/{sgId}": { 69 "get": { 70 "tags": [ 71 "sg" 72 ], 73 "summary": "Find sg by ID", 74 "description": "Returns a sg", 75 "operationId": "getsgById", 76 "produces": [ 77 "application/json" 78 ], 79 "parameters": [ 80 { 81 "name": "sgId", 82 "in": "path", 83 "description": "ID of sg to return", 84 "required": true, 85 "type": "integer", 86 "format": "int64" 87 } 88 ], 89 "responses": { 90 "200": { 91 "description": "successful operation", 92 "schema": { 93 "$ref": "#/definitions/sg" 94 } 95 }, 96 "400": { 97 "description": "Invalid ID supplied" 98 }, 99 "404": { 100 "description": "sg not found" 101 } 102 } 103 } 104 }, 105 "/ptp": { 106 "put": { 107 "tags": [ 108 "global" 109 ], 110 "summary": "Add new ptp settings to store", 111 "description": "", 112 "operationId": "add ptp", 113 "consumes": [ 114 "application/json" 115 ], 116 "produces": [ 117 "application/json" 118 ], 119 "parameters": [ 120 { 121 "in": "body", 122 "name": "body", 123 "description": "sg object that needs to be added to the store", 124 "required": true, 125 "schema": { 126 "$ref": "#/definitions/ptp" 127 } 128 } 129 ], 130 "responses": { 131 "405": { 132 "description": "Invalid input" 133 } 134 } 135 }, 136 "get": { 137 "tags": [ 138 "global" 139 ], 140 "summary": "get ptp global settings", 141 "description": "Returns ptp global settings", 142 "operationId": "getptp", 143 "produces": [ 144 "application/json" 145 ], 146 "responses": { 147 "200": { 148 "description": "successful operation", 149 "schema": { 150 "$ref": "#/definitions/ptp" 151 } 152 }, 153 "404": { 154 "description": "ptp not found" 155 } 156 } 157 }, 158 "delete": { 159 "tags": [ 160 "global" 161 ], 162 "summary": "delete ptp global settings", 163 "description": "delete ptp global settings", 164 "operationId": "deleteptp", 165 "produces": [ 166 "application/json" 167 ], 168 "responses": { 169 "200": { 170 "description": "successful operation", 171 "schema": { 172 "$ref": "#/definitions/ptp" 173 } 174 }, 175 "404": { 176 "description": "ptp not deleted" 177 } 178 } 179 } 180 } 181 }, 182 "definitions": { 183 "md": { 184 "properties": { 185 "mac": { 186 "type": "string", 187 "format": "string" 188 }, 189 "adminState": { 190 "type": "boolean", 191 "default": true 192 }, 193 "syncInterval": { 194 "type": "integer", 195 "format": "int32", 196 "maximum": 3000, 197 "minimum": 0 198 }, 199 "priDcid": { 200 "type": "array", 201 "items": { 202 "type": "integer", 203 "format": "int8", 204 "minimum": 0, 205 "maximum": 166, 206 "uniqueItems": true 207 } 208 }, 209 "ucid": { 210 "type": "array", 211 "items": { 212 "type": "integer", 213 "format": "int8", 214 "minimum": 0, 215 "maximum": 166, 216 "uniqueItems": true 217 } 218 } 219 } 220 }, 221 "sg": { 222 "type": "object", 223 "required": [ 224 "md" 225 ], 226 "properties": { 227 "sgId": { 228 "type": "integer", 229 "format": "int32" 230 }, 231 "ds": { 232 "type": "string", 233 "format": "string" 234 }, 235 "us": { 236 "type": "string", 237 "format": "string" 238 }, 239 "md": { 240 "type": "array", 241 "items": { 242 "$ref": "#/definitions/md" 243 } 244 } 245 }, 246 "xml": { 247 "name": "sg" 248 } 249 }, 250 "ptp": { 251 "type": "object", 252 "properties": { 253 "ptpMasterIp": { 254 "type": "string", 255 "format": "string", 256 "pattern": "((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])" 257 }, 258 "ptpGwIp": { 259 "type": "string", 260 "format": "string", 261 "pattern": "^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$" 262 } 263 }, 264 "xml": { 265 "name": "ptp" 266 } 267 } 268 } 269 }