github.com/s7techlab/cckit@v0.10.5/extensions/crosscc/cclocator_setting.swagger.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "crosscc/cclocator_setting.proto", 5 "version": "version not set" 6 }, 7 "consumes": [ 8 "application/json" 9 ], 10 "produces": [ 11 "application/json" 12 ], 13 "paths": { 14 "/croscc/ping": { 15 "get": { 16 "operationId": "SettingService_PingServices", 17 "responses": { 18 "200": { 19 "description": "A successful response.", 20 "schema": { 21 "$ref": "#/definitions/crossccPingServiceResponses" 22 } 23 }, 24 "default": { 25 "description": "An unexpected error response.", 26 "schema": { 27 "$ref": "#/definitions/runtimeError" 28 } 29 } 30 }, 31 "tags": [ 32 "SettingService" 33 ] 34 } 35 }, 36 "/croscc/ping/{service}": { 37 "get": { 38 "summary": "Try to query chaincodes from service chaincode settings", 39 "operationId": "SettingService_PingService", 40 "responses": { 41 "200": { 42 "description": "A successful response.", 43 "schema": { 44 "$ref": "#/definitions/crossccPingServiceResponse" 45 } 46 }, 47 "default": { 48 "description": "An unexpected error response.", 49 "schema": { 50 "$ref": "#/definitions/runtimeError" 51 } 52 } 53 }, 54 "parameters": [ 55 { 56 "name": "service", 57 "in": "path", 58 "required": true, 59 "type": "string" 60 } 61 ], 62 "tags": [ 63 "SettingService" 64 ] 65 } 66 }, 67 "/croscc/services": { 68 "get": { 69 "operationId": "SettingService_ListServiceLocators", 70 "responses": { 71 "200": { 72 "description": "A successful response.", 73 "schema": { 74 "$ref": "#/definitions/crossccServiceLocators" 75 } 76 }, 77 "default": { 78 "description": "An unexpected error response.", 79 "schema": { 80 "$ref": "#/definitions/runtimeError" 81 } 82 } 83 }, 84 "tags": [ 85 "SettingService" 86 ] 87 }, 88 "post": { 89 "operationId": "SettingService_ServiceLocatorSet", 90 "responses": { 91 "200": { 92 "description": "A successful response.", 93 "schema": { 94 "$ref": "#/definitions/crossccServiceLocator" 95 } 96 }, 97 "default": { 98 "description": "An unexpected error response.", 99 "schema": { 100 "$ref": "#/definitions/runtimeError" 101 } 102 } 103 }, 104 "parameters": [ 105 { 106 "name": "body", 107 "in": "body", 108 "required": true, 109 "schema": { 110 "$ref": "#/definitions/crossccServiceLocatorSetRequest" 111 } 112 } 113 ], 114 "tags": [ 115 "SettingService" 116 ] 117 } 118 }, 119 "/croscc/{service}": { 120 "get": { 121 "operationId": "SettingService_ServiceLocatorGet", 122 "responses": { 123 "200": { 124 "description": "A successful response.", 125 "schema": { 126 "$ref": "#/definitions/crossccServiceLocator" 127 } 128 }, 129 "default": { 130 "description": "An unexpected error response.", 131 "schema": { 132 "$ref": "#/definitions/runtimeError" 133 } 134 } 135 }, 136 "parameters": [ 137 { 138 "name": "service", 139 "in": "path", 140 "required": true, 141 "type": "string" 142 } 143 ], 144 "tags": [ 145 "SettingService" 146 ] 147 } 148 } 149 }, 150 "definitions": { 151 "crossccPingServiceResponse": { 152 "type": "object", 153 "properties": { 154 "locator": { 155 "$ref": "#/definitions/crossccServiceLocator" 156 }, 157 "error": { 158 "type": "string" 159 } 160 } 161 }, 162 "crossccPingServiceResponses": { 163 "type": "object", 164 "properties": { 165 "responses": { 166 "type": "array", 167 "items": { 168 "$ref": "#/definitions/crossccPingServiceResponse" 169 } 170 } 171 } 172 }, 173 "crossccServiceLocator": { 174 "type": "object", 175 "properties": { 176 "service": { 177 "type": "string" 178 }, 179 "channel": { 180 "type": "string" 181 }, 182 "chaincode": { 183 "type": "string" 184 } 185 }, 186 "title": "State: ervice resolving setting" 187 }, 188 "crossccServiceLocatorSetRequest": { 189 "type": "object", 190 "properties": { 191 "service": { 192 "type": "string" 193 }, 194 "channel": { 195 "type": "string" 196 }, 197 "chaincode": { 198 "type": "string" 199 } 200 }, 201 "title": "Request: set service resolving setting" 202 }, 203 "crossccServiceLocators": { 204 "type": "object", 205 "properties": { 206 "items": { 207 "type": "array", 208 "items": { 209 "$ref": "#/definitions/crossccServiceLocator" 210 } 211 } 212 }, 213 "title": "List: service resolving settings" 214 }, 215 "protobufAny": { 216 "type": "object", 217 "properties": { 218 "type_url": { 219 "type": "string" 220 }, 221 "value": { 222 "type": "string", 223 "format": "byte" 224 } 225 } 226 }, 227 "runtimeError": { 228 "type": "object", 229 "properties": { 230 "error": { 231 "type": "string" 232 }, 233 "code": { 234 "type": "integer", 235 "format": "int32" 236 }, 237 "message": { 238 "type": "string" 239 }, 240 "details": { 241 "type": "array", 242 "items": { 243 "$ref": "#/definitions/protobufAny" 244 } 245 } 246 } 247 } 248 } 249 }