trpc.group/trpc-go/trpc-cmdline@v1.0.9/util/apidocs/testcase/openapi_order_by_pbname.json (about) 1 { 2 "openapi": "3.0.2", 3 "info": { 4 "title": "hello", 5 "description": "The api document of hello.proto", 6 "version": "2.0" 7 }, 8 "paths": { 9 "/helloworld.Hello/ImportMembers": { 10 "post": { 11 "summary": "导入用户", 12 "operationId": "ImportMembers", 13 "responses": { 14 "200": { 15 "description": "ImportMembersReply", 16 "content": { 17 "application/json": { 18 "schema": { 19 "$ref": "#/components/schemas/helloworld.ImportMembersReply" 20 } 21 } 22 } 23 } 24 }, 25 "requestBody": { 26 "description": "", 27 "content": { 28 "application/json": { 29 "schema": { 30 "$ref": "#/components/schemas/helloworld.ImportMembersReq" 31 } 32 } 33 } 34 }, 35 "tags": [ 36 "hello.trpc" 37 ] 38 } 39 }, 40 "/v1/members/import": { 41 "post": { 42 "summary": "导入用户", 43 "operationId": "ImportMembers2", 44 "responses": { 45 "200": { 46 "description": "ImportMembersReply", 47 "content": { 48 "application/json": { 49 "schema": { 50 "$ref": "#/components/schemas/helloworld.ImportMembersReply" 51 } 52 } 53 } 54 } 55 }, 56 "requestBody": { 57 "description": "", 58 "content": { 59 "application/json": { 60 "schema": { 61 "$ref": "#/components/schemas/helloworld.ImportMembersReq" 62 } 63 } 64 } 65 }, 66 "tags": [ 67 "hello.restful" 68 ] 69 } 70 }, 71 "/v1/{domain.type}/members/import": { 72 "post": { 73 "summary": "导入用户", 74 "operationId": "ImportMembers3", 75 "responses": { 76 "200": { 77 "description": "ImportMembersReply", 78 "content": { 79 "application/json": { 80 "schema": { 81 "$ref": "#/components/schemas/helloworld.ImportMembersReply" 82 } 83 } 84 } 85 } 86 }, 87 "parameters": [ 88 { 89 "name": "domain.type", 90 "in": "path", 91 "required": true, 92 "schema": { 93 "type": "string", 94 "title": "domain.type" 95 } 96 } 97 ], 98 "requestBody": { 99 "description": "", 100 "content": { 101 "application/json": { 102 "schema": { 103 "$ref": "#/components/schemas/helloworld.ImportMembersReq.aa6718f0a7c001e99386d62d6a0da155" 104 } 105 } 106 } 107 }, 108 "tags": [ 109 "hello.restful" 110 ] 111 } 112 }, 113 "/helloworld.Hello/SearchMembers": { 114 "post": { 115 "summary": "添加成员,支持批量添加", 116 "operationId": "SearchMembers", 117 "responses": { 118 "200": { 119 "description": "SearchMembersReply", 120 "content": { 121 "application/json": { 122 "schema": { 123 "$ref": "#/components/schemas/helloworld.SearchMembersReply" 124 } 125 } 126 } 127 } 128 }, 129 "requestBody": { 130 "description": "", 131 "content": { 132 "application/json": { 133 "schema": { 134 "$ref": "#/components/schemas/helloworld.SearchMembersReq" 135 } 136 } 137 } 138 }, 139 "tags": [ 140 "hello.trpc" 141 ] 142 } 143 }, 144 "/v1/members": { 145 "get": { 146 "summary": "添加成员,支持批量添加", 147 "operationId": "SearchMembers2", 148 "responses": { 149 "200": { 150 "description": "SearchMembersReply", 151 "content": { 152 "application/json": { 153 "schema": { 154 "$ref": "#/components/schemas/helloworld.SearchMembersReply" 155 } 156 } 157 } 158 } 159 }, 160 "parameters": [ 161 { 162 "name": "domain.id", 163 "in": "query", 164 "required": false, 165 "schema": { 166 "type": "integer", 167 "title": "domain.id" 168 } 169 }, 170 { 171 "name": "domain.type", 172 "in": "query", 173 "required": false, 174 "schema": { 175 "type": "string", 176 "title": "domain.type" 177 } 178 }, 179 { 180 "name": "page", 181 "in": "query", 182 "required": false, 183 "schema": { 184 "type": "integer", 185 "title": "page" 186 } 187 }, 188 { 189 "name": "page_size", 190 "in": "query", 191 "required": false, 192 "schema": { 193 "type": "integer", 194 "title": "page_size" 195 } 196 }, 197 { 198 "name": "t", 199 "in": "query", 200 "required": false, 201 "description": " * 0 - A - \n * 1 - B - \n", 202 "schema": { 203 "type": "integer", 204 "title": "t", 205 "description": " * 0 - A - \n * 1 - B - \n" 206 } 207 } 208 ], 209 "tags": [ 210 "hello.restful" 211 ] 212 }, 213 "delete": { 214 "summary": "移除成员,支持批量移除", 215 "operationId": "RemoveMembers", 216 "responses": { 217 "200": { 218 "description": "RemoveMembersReply", 219 "content": { 220 "application/json": { 221 "schema": { 222 "$ref": "#/components/schemas/helloworld.RemoveMembersReply" 223 } 224 } 225 } 226 } 227 }, 228 "parameters": [ 229 { 230 "name": "ids", 231 "in": "query", 232 "required": false, 233 "schema": { 234 "type": "array", 235 "title": "ids", 236 "items": { 237 "type": "integer", 238 "format": "uint32" 239 } 240 } 241 } 242 ], 243 "tags": [ 244 "hello.restful" 245 ] 246 } 247 }, 248 "/v1/school/members": { 249 "get": { 250 "summary": "添加成员,支持批量添加", 251 "operationId": "SearchMembers3", 252 "responses": { 253 "200": { 254 "description": "SearchMembersReply", 255 "content": { 256 "application/json": { 257 "schema": { 258 "$ref": "#/components/schemas/helloworld.SearchMembersReply" 259 } 260 } 261 } 262 } 263 }, 264 "parameters": [ 265 { 266 "name": "domain.id", 267 "in": "query", 268 "required": false, 269 "schema": { 270 "type": "integer", 271 "title": "domain.id" 272 } 273 }, 274 { 275 "name": "page", 276 "in": "query", 277 "required": false, 278 "schema": { 279 "type": "integer", 280 "title": "page" 281 } 282 }, 283 { 284 "name": "page_size", 285 "in": "query", 286 "required": false, 287 "schema": { 288 "type": "integer", 289 "title": "page_size" 290 } 291 }, 292 { 293 "name": "t", 294 "in": "query", 295 "required": false, 296 "description": " * 0 - A - \n * 1 - B - \n", 297 "schema": { 298 "type": "integer", 299 "title": "t", 300 "description": " * 0 - A - \n * 1 - B - \n" 301 } 302 } 303 ], 304 "tags": [ 305 "hello.restful" 306 ] 307 } 308 }, 309 "/helloworld.Hello/RemoveMembers": { 310 "post": { 311 "summary": "移除成员,支持批量移除", 312 "operationId": "RemoveMembers2", 313 "responses": { 314 "200": { 315 "description": "RemoveMembersReply", 316 "content": { 317 "application/json": { 318 "schema": { 319 "$ref": "#/components/schemas/helloworld.RemoveMembersReply" 320 } 321 } 322 } 323 } 324 }, 325 "requestBody": { 326 "description": "", 327 "content": { 328 "application/json": { 329 "schema": { 330 "$ref": "#/components/schemas/helloworld.RemoveMembersReq" 331 } 332 } 333 } 334 }, 335 "tags": [ 336 "hello.trpc" 337 ] 338 } 339 } 340 }, 341 "components": { 342 "schemas": { 343 "helloworld.Domain": { 344 "type": "object", 345 "properties": { 346 "id": { 347 "title": "id", 348 "type": "integer", 349 "format": "uint32" 350 }, 351 "type": { 352 "title": "type", 353 "type": "string" 354 } 355 }, 356 "title": "helloworld.Domain", 357 "description": "Domain" 358 }, 359 "helloworld.Domain.aa6718f0a7c001e99386d62d6a0da155": { 360 "type": "object", 361 "properties": { 362 "id": { 363 "title": "id", 364 "type": "integer", 365 "format": "uint32" 366 } 367 }, 368 "title": "helloworld.Domain.aa6718f0a7c001e99386d62d6a0da155", 369 "description": "Domain" 370 }, 371 "helloworld.ImportMembersReply": { 372 "type": "object", 373 "title": "helloworld.ImportMembersReply", 374 "description": "ImportMembersReply" 375 }, 376 "helloworld.ImportMembersReq": { 377 "type": "object", 378 "properties": { 379 "domain": { 380 "title": "domain", 381 "$ref": "#/components/schemas/helloworld.Domain" 382 }, 383 "url": { 384 "title": "url", 385 "type": "string" 386 } 387 }, 388 "title": "helloworld.ImportMembersReq", 389 "description": "ImportMembersReq" 390 }, 391 "helloworld.ImportMembersReq.aa6718f0a7c001e99386d62d6a0da155": { 392 "type": "object", 393 "properties": { 394 "domain": { 395 "title": "domain", 396 "$ref": "#/components/schemas/helloworld.Domain.aa6718f0a7c001e99386d62d6a0da155" 397 }, 398 "url": { 399 "title": "url", 400 "type": "string" 401 } 402 }, 403 "title": "helloworld.ImportMembersReq.aa6718f0a7c001e99386d62d6a0da155", 404 "description": "ImportMembersReq" 405 }, 406 "helloworld.RemoveMembersReply": { 407 "type": "object", 408 "title": "helloworld.RemoveMembersReply", 409 "description": "RemoveMembersReply" 410 }, 411 "helloworld.RemoveMembersReq": { 412 "type": "object", 413 "properties": { 414 "ids": { 415 "title": "ids", 416 "type": "array", 417 "format": "uint32", 418 "items": { 419 "type": "integer", 420 "format": "uint32" 421 } 422 } 423 }, 424 "title": "helloworld.RemoveMembersReq", 425 "description": "RemoveMembersReq" 426 }, 427 "helloworld.SearchMembersReply": { 428 "type": "object", 429 "properties": { 430 "total": { 431 "title": "total", 432 "type": "integer", 433 "format": "uint32" 434 }, 435 "members": { 436 "title": "members", 437 "type": "array", 438 "items": { 439 "$ref": "#/components/schemas/helloworld.SearchMembersReply.Member" 440 } 441 } 442 }, 443 "title": "helloworld.SearchMembersReply", 444 "description": "SearchMembersReply" 445 }, 446 "helloworld.SearchMembersReply.Member": { 447 "type": "object", 448 "properties": { 449 "id": { 450 "title": "id", 451 "type": "integer", 452 "format": "uint32" 453 } 454 }, 455 "title": "helloworld.SearchMembersReply.Member", 456 "description": "Member" 457 }, 458 "helloworld.SearchMembersReq": { 459 "type": "object", 460 "properties": { 461 "domain": { 462 "title": "domain", 463 "$ref": "#/components/schemas/helloworld.Domain" 464 }, 465 "page": { 466 "title": "page", 467 "type": "integer", 468 "format": "uint32" 469 }, 470 "page_size": { 471 "title": "page_size", 472 "type": "integer", 473 "format": "uint32" 474 }, 475 "t": { 476 "title": "t", 477 "type": "integer", 478 "format": "int32", 479 "description": " * 0 - A - \n * 1 - B - \n", 480 "enum": [ 481 0, 482 1 483 ] 484 } 485 }, 486 "title": "helloworld.SearchMembersReq", 487 "description": "SearchMembersReq" 488 } 489 } 490 } 491 }