github.com/s7techlab/cckit@v0.10.5/examples/cpaper_proxy/cpaper_proxy.swagger.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "cpaper_proxy/cpaper_proxy.proto", 5 "version": "version not set" 6 }, 7 "consumes": [ 8 "application/json" 9 ], 10 "produces": [ 11 "application/json" 12 ], 13 "paths": { 14 "/cpaper/{issuer}/{paper_number}": { 15 "get": { 16 "summary": "List method returns all registered commercial papers", 17 "operationId": "CPaperProxyService_GetFromCPaper", 18 "responses": { 19 "200": { 20 "description": "A successful response.", 21 "schema": { 22 "$ref": "#/definitions/cpaper_proxyInfoFromCPaper" 23 } 24 }, 25 "default": { 26 "description": "An unexpected error response.", 27 "schema": { 28 "$ref": "#/definitions/runtimeError" 29 } 30 } 31 }, 32 "parameters": [ 33 { 34 "name": "issuer", 35 "in": "path", 36 "required": true, 37 "type": "string" 38 }, 39 { 40 "name": "paper_number", 41 "in": "path", 42 "required": true, 43 "type": "string" 44 } 45 ], 46 "tags": [ 47 "CPaperProxyService" 48 ] 49 } 50 } 51 }, 52 "definitions": { 53 "cpaper_proxyInfoFromCPaper": { 54 "type": "object", 55 "properties": { 56 "issuer": { 57 "type": "string" 58 }, 59 "paper_number": { 60 "type": "string" 61 }, 62 "owner": { 63 "type": "string" 64 } 65 } 66 }, 67 "protobufAny": { 68 "type": "object", 69 "properties": { 70 "type_url": { 71 "type": "string" 72 }, 73 "value": { 74 "type": "string", 75 "format": "byte" 76 } 77 } 78 }, 79 "runtimeError": { 80 "type": "object", 81 "properties": { 82 "error": { 83 "type": "string" 84 }, 85 "code": { 86 "type": "integer", 87 "format": "int32" 88 }, 89 "message": { 90 "type": "string" 91 }, 92 "details": { 93 "type": "array", 94 "items": { 95 "$ref": "#/definitions/protobufAny" 96 } 97 } 98 } 99 } 100 } 101 }