{ "swagger": "2.0", "info": { "contact": {} }, "paths": { "/api/v1/open/gateways/{gateway_name}/public_key/": { "get": { "description": "query public key of v1", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "open" ], "summary": "query public key of v1", "parameters": [ { "type": "string", "description": "gateway_name", "name": "gateway_name", "in": "path", "required": true } ], "responses": { "200": { "description": "success", "schema": { "$ref": "#/definitions/util.LegacySuccessResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/util.LegacyErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/util.LegacyErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/util.LegacyErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/util.LegacyErrorResponse" } } } } }, "/api/v2/open/gateways/{gateway_name}/public_key/": { "get": { "description": "query public key of v2", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "open" ], "summary": "query public key of v2", "parameters": [ { "type": "string", "description": "gateway_name", "name": "gateway_name", "in": "path", "required": true } ], "responses": { "200": { "description": "success", "schema": { "$ref": "#/definitions/util.SuccessResponse" } }, "400": { "description": "Bad Request", "schema": { "$ref": "#/definitions/util.ErrorResponse" } }, "401": { "description": "Unauthorized", "schema": { "$ref": "#/definitions/util.ErrorResponse" } }, "404": { "description": "Not Found", "schema": { "$ref": "#/definitions/util.ErrorResponse" } }, "500": { "description": "Internal Server Error", "schema": { "$ref": "#/definitions/util.ErrorResponse" } } } } } }, "definitions": { "util.Error": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "system": { "type": "string" } } }, "util.ErrorResponse": { "type": "object", "properties": { "error": { "$ref": "#/definitions/util.Error" } } }, "util.LegacyErrorResponse": { "type": "object", "properties": { "code": { "type": "integer" }, "message": { "type": "string" }, "result": { "type": "boolean" } } }, "util.LegacySuccessResponse": { "type": "object", "properties": { "code": { "type": "integer" }, "data": {}, "message": { "type": "string" }, "result": { "type": "boolean" } } }, "util.SuccessResponse": { "type": "object", "properties": { "data": {} } } } }