--- /dev/null
+{\r
+ "swagger" : "2.0",\r
+ "info" : {\r
+ "description" : "MicroService Bus rest API",\r
+ "version" : "1.0.0",\r
+ "title" : "MicroService Bus rest API",\r
+ "license" : {\r
+ "name" : "https://wiki.onap.org/display/DW/Apache+2.0+License"\r
+ }\r
+ },\r
+ "host" : "127.0.0.1:80",\r
+ "basePath" : "/api/microservices/v1",\r
+ "tags" : [ {\r
+ "name" : "ApiRoute"\r
+ }, {\r
+ "name" : "CustomRoute"\r
+ }, {\r
+ "name" : "iuiRoute"\r
+ } ],\r
+ "schemes" : [ "http", "https" ],\r
+ "paths" : {\r
+ "/apiRoute" : {\r
+ "get" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "get all ApiRoute ",\r
+ "description" : "",\r
+ "operationId" : "getApiRoutes",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "type" : "array",\r
+ "items" : {\r
+ "$ref" : "#/definitions/ApiRouteInfo"\r
+ }\r
+ }\r
+ },\r
+ "500" : {\r
+ "description" : "get ApiRouteInfo List fail"\r
+ }\r
+ }\r
+ },\r
+ "post" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "add one ApiRoute ",\r
+ "description" : "",\r
+ "operationId" : "addApiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "in" : "body",\r
+ "name" : "body",\r
+ "description" : "ApiRoute Instance Info",\r
+ "required" : true,\r
+ "schema" : {\r
+ "$ref" : "#/definitions/ApiRouteInfo"\r
+ }\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/ApiRouteInfo"\r
+ }\r
+ },\r
+ "400" : {\r
+ "description" : "Unprocessable ApiRouteInfo JSON REQUEST"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable ApiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "add ApiRouteInfo fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/apiRoute/apiDocs" : {\r
+ "get" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "get all Local apiDoc ",\r
+ "description" : "",\r
+ "operationId" : "getApiDocs",\r
+ "produces" : [ "application/json" ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "type" : "array",\r
+ "items" : {\r
+ "type" : "string"\r
+ }\r
+ }\r
+ },\r
+ "500" : {\r
+ "description" : "get apiDoc List fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/apiRoute/discoverInfo" : {\r
+ "get" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "get discover Info ",\r
+ "description" : "",\r
+ "operationId" : "getServiceDiscoverInfo",\r
+ "produces" : [ "application/json" ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/DiscoverInfo"\r
+ }\r
+ },\r
+ "500" : {\r
+ "description" : "get discover Info fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/apiRoute/export" : {\r
+ "get" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "export all route service Info by json-file",\r
+ "description" : "",\r
+ "operationId" : "exportService",\r
+ "produces" : [ "text/plain" ],\r
+ "parameters" : [ {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "type" : "string"\r
+ }\r
+ },\r
+ "406" : {\r
+ "description" : " not Acceptable client-side"\r
+ },\r
+ "500" : {\r
+ "description" : "export fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/apiRoute/{serviceName}/version/{version}" : {\r
+ "get" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "get one ApiRoute ",\r
+ "description" : "",\r
+ "operationId" : "getApiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "ApiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "version",\r
+ "in" : "path",\r
+ "description" : "ApiRoute version,if the version is empty, please enter \"null\"",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "ApiRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "ApiRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/ApiRouteInfo"\r
+ }\r
+ },\r
+ "404" : {\r
+ "description" : "ApiRouteInfo not found"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable ApiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "get ApiRouteInfo fail"\r
+ }\r
+ }\r
+ },\r
+ "put" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "update one ApiRoute by serviceName and version",\r
+ "description" : "",\r
+ "operationId" : "updateApiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "ApiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "version",\r
+ "in" : "path",\r
+ "description" : "ApiRoute version,if the version is empty, please enter \"null\"",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "in" : "body",\r
+ "name" : "body",\r
+ "description" : "ApiRoute Instance Info",\r
+ "required" : true,\r
+ "schema" : {\r
+ "$ref" : "#/definitions/ApiRouteInfo"\r
+ }\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/ApiRouteInfo"\r
+ }\r
+ },\r
+ "400" : {\r
+ "description" : "Unprocessable ApiRouteInfo JSON REQUEST"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable ApiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "update ApiRouteInfo fail"\r
+ }\r
+ }\r
+ },\r
+ "delete" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "delete one ApiRoute by serviceName and version",\r
+ "description" : "",\r
+ "operationId" : "deleteApiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "ApiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "version",\r
+ "in" : "path",\r
+ "description" : "ApiRoute version,if the version is empty, please enter \"null\"",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "ApiRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "ApiRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "204" : {\r
+ "description" : "delete ApiRouteInfo succeed "\r
+ },\r
+ "404" : {\r
+ "description" : "ApiRouteInfo not found"\r
+ },\r
+ "500" : {\r
+ "description" : "delete ApiRouteInfo fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/apiRoute/{serviceName}/version/{version}/status/{status}" : {\r
+ "put" : {\r
+ "tags" : [ "ApiRoute" ],\r
+ "summary" : "update one ApiRoute status by serviceName and version",\r
+ "description" : "",\r
+ "operationId" : "updateApiRouteStatus",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "ApiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "version",\r
+ "in" : "path",\r
+ "description" : "ApiRoute version,if the version is empty, please enter \"null\"",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "status",\r
+ "in" : "path",\r
+ "description" : "ApiRoute status,1?abled 0?disabled",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "ApiRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "ApiRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/ApiRouteInfo"\r
+ }\r
+ },\r
+ "404" : {\r
+ "description" : "ApiRouteInfo not found"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable ApiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "update status fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/customRoute/all" : {\r
+ "get" : {\r
+ "tags" : [ "CustomRoute" ],\r
+ "summary" : "get all CustomRoute ",\r
+ "description" : "",\r
+ "operationId" : "getCustomRoutes",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "type" : "array",\r
+ "items" : {\r
+ "$ref" : "#/definitions/CustomRouteInfo"\r
+ }\r
+ }\r
+ },\r
+ "500" : {\r
+ "description" : "get CustomRouteInfo List fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/customRoute/instance" : {\r
+ "get" : {\r
+ "tags" : [ "CustomRoute" ],\r
+ "summary" : "get one CustomRoute ",\r
+ "description" : "",\r
+ "operationId" : "getCustomRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "query",\r
+ "description" : "CustomRoute serviceName",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "CustomRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "CustomRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/CustomRouteInfo"\r
+ }\r
+ },\r
+ "404" : {\r
+ "description" : "CustomRoute not found"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable CustomRoute Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "get CustomRoute fail"\r
+ }\r
+ }\r
+ },\r
+ "post" : {\r
+ "tags" : [ "CustomRoute" ],\r
+ "summary" : "add one CustomRoute ",\r
+ "description" : "",\r
+ "operationId" : "addCustomRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "in" : "body",\r
+ "name" : "body",\r
+ "description" : "CustomRoute Instance Info",\r
+ "required" : true,\r
+ "schema" : {\r
+ "$ref" : "#/definitions/CustomRouteInfo"\r
+ }\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/CustomRouteInfo"\r
+ }\r
+ },\r
+ "400" : {\r
+ "description" : "Unprocessable CustomRouteInfo JSON REQUEST"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable CustomRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "add CustomRouteInfo fail"\r
+ }\r
+ }\r
+ },\r
+ "put" : {\r
+ "tags" : [ "CustomRoute" ],\r
+ "summary" : "update one CustomRoute by serviceName",\r
+ "description" : "",\r
+ "operationId" : "updateCustomRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "query",\r
+ "description" : "CustomRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "in" : "body",\r
+ "name" : "body",\r
+ "description" : "CustomRoute Instance Info",\r
+ "required" : true,\r
+ "schema" : {\r
+ "$ref" : "#/definitions/CustomRouteInfo"\r
+ }\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/CustomRouteInfo"\r
+ }\r
+ },\r
+ "400" : {\r
+ "description" : "Unprocessable CustomRoute JSON REQUEST"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable CustomRoute Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "update CustomRoute fail"\r
+ }\r
+ }\r
+ },\r
+ "delete" : {\r
+ "tags" : [ "CustomRoute" ],\r
+ "summary" : "delete one CustomRoute by serviceName",\r
+ "description" : "",\r
+ "operationId" : "deleteCustomRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "query",\r
+ "description" : "CustomRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "CustomRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "CustomRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "204" : {\r
+ "description" : "delete customRoute succeed "\r
+ },\r
+ "404" : {\r
+ "description" : "customRoute not found"\r
+ },\r
+ "500" : {\r
+ "description" : "delete customRoute fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/customRoute/status" : {\r
+ "put" : {\r
+ "tags" : [ "CustomRoute" ],\r
+ "summary" : "update one CustomRoute status by serviceName ",\r
+ "description" : "",\r
+ "operationId" : "updateCustomRouteStatus",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "query",\r
+ "description" : "CustomRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "CustomRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "status",\r
+ "in" : "query",\r
+ "description" : "CustomRoute status,1?abled 0?disabled",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "CustomRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/CustomRouteInfo"\r
+ }\r
+ },\r
+ "404" : {\r
+ "description" : "customRoute not found"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable customRoute Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "update status fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/iuiRoute" : {\r
+ "get" : {\r
+ "tags" : [ "iuiRoute" ],\r
+ "summary" : "get all iuiRoute ",\r
+ "description" : "",\r
+ "operationId" : "getIuiRoutes",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "type" : "array",\r
+ "items" : {\r
+ "$ref" : "#/definitions/IuiRouteInfo"\r
+ }\r
+ }\r
+ },\r
+ "500" : {\r
+ "description" : "get iuiRouteInfo List fail"\r
+ }\r
+ }\r
+ },\r
+ "post" : {\r
+ "tags" : [ "iuiRoute" ],\r
+ "summary" : "add one iuiRoute ",\r
+ "description" : "",\r
+ "operationId" : "addIuiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "in" : "body",\r
+ "name" : "body",\r
+ "description" : "iuiRoute Instance Info",\r
+ "required" : true,\r
+ "schema" : {\r
+ "$ref" : "#/definitions/IuiRouteInfo"\r
+ }\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/IuiRouteInfo"\r
+ }\r
+ },\r
+ "400" : {\r
+ "description" : "Unprocessable iuiRouteInfo JSON REQUEST"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable iuiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "add iuiRouteInfo fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/iuiRoute/{serviceName}" : {\r
+ "get" : {\r
+ "tags" : [ "iuiRoute" ],\r
+ "summary" : "get one iuiRoute ",\r
+ "description" : "",\r
+ "operationId" : "getIuiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "iuiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "iuiRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "iuiRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "200" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/IuiRouteInfo"\r
+ }\r
+ },\r
+ "404" : {\r
+ "description" : "IuiRouteInfo not found"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable IuiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "get IuiRouteInfo fail"\r
+ }\r
+ }\r
+ },\r
+ "put" : {\r
+ "tags" : [ "iuiRoute" ],\r
+ "summary" : "update one iuiRoute by serviceName",\r
+ "description" : "",\r
+ "operationId" : "updateIuiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "iuiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "in" : "body",\r
+ "name" : "body",\r
+ "description" : "iuiRoute Instance Info",\r
+ "required" : true,\r
+ "schema" : {\r
+ "$ref" : "#/definitions/IuiRouteInfo"\r
+ }\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/IuiRouteInfo"\r
+ }\r
+ },\r
+ "400" : {\r
+ "description" : "Unprocessable IuiRouteInfo JSON REQUEST"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable IuiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "update IuiRouteInfo fail"\r
+ }\r
+ }\r
+ },\r
+ "delete" : {\r
+ "tags" : [ "iuiRoute" ],\r
+ "summary" : "delete one iuiRoute by serviceName",\r
+ "description" : "",\r
+ "operationId" : "deleteIuiRoute",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "iuiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "iuiRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "iuiRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "204" : {\r
+ "description" : "delete IuiRouteInfo succeed "\r
+ },\r
+ "404" : {\r
+ "description" : "IuiRouteInfo not found"\r
+ },\r
+ "500" : {\r
+ "description" : "delete IuiRouteInfo fail"\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "/iuiRoute/{serviceName}/status/{status}" : {\r
+ "put" : {\r
+ "tags" : [ "iuiRoute" ],\r
+ "summary" : "update one iuiRoute status by serviceName ",\r
+ "description" : "",\r
+ "operationId" : "updateIuiRouteStatus",\r
+ "produces" : [ "application/json" ],\r
+ "parameters" : [ {\r
+ "name" : "serviceName",\r
+ "in" : "path",\r
+ "description" : "iuiRoute serviceName",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "host",\r
+ "in" : "query",\r
+ "description" : "iuiRoute host",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "status",\r
+ "in" : "path",\r
+ "description" : "iuiRoute status,1?abled 0?disabled",\r
+ "required" : true,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "publish_port",\r
+ "in" : "query",\r
+ "description" : "iuiRoute Publish port",\r
+ "required" : false,\r
+ "type" : "string"\r
+ }, {\r
+ "name" : "routeWay",\r
+ "in" : "query",\r
+ "description" : "Route Way",\r
+ "required" : false,\r
+ "type" : "string",\r
+ "default" : "ip"\r
+ } ],\r
+ "responses" : {\r
+ "201" : {\r
+ "description" : "successful operation",\r
+ "schema" : {\r
+ "$ref" : "#/definitions/IuiRouteInfo"\r
+ }\r
+ },\r
+ "404" : {\r
+ "description" : "IuiRouteInfo not found"\r
+ },\r
+ "422" : {\r
+ "description" : "Unprocessable IuiRouteInfo Entity "\r
+ },\r
+ "500" : {\r
+ "description" : "update IuiRouteInfo status fail"\r
+ }\r
+ }\r
+ }\r
+ }\r
+ },\r
+ "definitions" : {\r
+ "ApiRouteInfo" : {\r
+ "type" : "object",\r
+ "required" : [ "servers", "serviceName", "url", "version" ],\r
+ "properties" : {\r
+ "serviceName" : {\r
+ "type" : "string"\r
+ },\r
+ "url" : {\r
+ "type" : "string",\r
+ "example" : "/test",\r
+ "description" : "Target Service URL,start with /"\r
+ },\r
+ "control" : {\r
+ "type" : "string",\r
+ "example" : "0",\r
+ "description" : "[control Range] 0?default 1?readonly 2?hidden ",\r
+ "enum" : [ "0", "1", "2" ]\r
+ },\r
+ "status" : {\r
+ "type" : "string",\r
+ "example" : "1",\r
+ "description" : "[status] 1?abled 0?disabled ",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "visualRange" : {\r
+ "type" : "string",\r
+ "example" : "1",\r
+ "description" : "[visual Range]interSystem:0,inSystem:1",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "useOwnUpstream" : {\r
+ "type" : "string",\r
+ "example" : "0",\r
+ "description" : "[LB Policy]non_ip_hash:0,ip_hash:1",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "servers" : {\r
+ "type" : "array",\r
+ "items" : {\r
+ "$ref" : "#/definitions/RouteServer"\r
+ }\r
+ },\r
+ "host" : {\r
+ "type" : "string"\r
+ },\r
+ "namespace" : {\r
+ "type" : "string"\r
+ },\r
+ "publish_port" : {\r
+ "type" : "string"\r
+ },\r
+ "enable_ssl" : {\r
+ "type" : "boolean",\r
+ "default" : false\r
+ },\r
+ "consulServiceName" : {\r
+ "type" : "string"\r
+ },\r
+ "publishProtocol" : {\r
+ "type" : "string"\r
+ },\r
+ "version" : {\r
+ "type" : "string",\r
+ "example" : "v1"\r
+ },\r
+ "apiJson" : {\r
+ "type" : "string"\r
+ },\r
+ "apiJsonType" : {\r
+ "type" : "string",\r
+ "example" : "1",\r
+ "description" : "[apiJson Type] 0?local file 1? remote file",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "metricsUrl" : {\r
+ "type" : "string"\r
+ }\r
+ }\r
+ },\r
+ "CustomRouteInfo" : {\r
+ "type" : "object",\r
+ "required" : [ "servers", "serviceName", "url" ],\r
+ "properties" : {\r
+ "serviceName" : {\r
+ "type" : "string"\r
+ },\r
+ "url" : {\r
+ "type" : "string",\r
+ "example" : "/test",\r
+ "description" : "Target Service URL,start with /"\r
+ },\r
+ "control" : {\r
+ "type" : "string",\r
+ "example" : "0",\r
+ "description" : "[control Range] 0?default 1?readonly 2?hidden ",\r
+ "enum" : [ "0", "1", "2" ]\r
+ },\r
+ "status" : {\r
+ "type" : "string",\r
+ "example" : "1",\r
+ "description" : "[status] 1?abled 0?disabled ",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "visualRange" : {\r
+ "type" : "string",\r
+ "example" : "1",\r
+ "description" : "[visual Range]interSystem:0,inSystem:1",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "useOwnUpstream" : {\r
+ "type" : "string",\r
+ "example" : "0",\r
+ "description" : "[LB Policy]non_ip_hash:0,ip_hash:1",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "servers" : {\r
+ "type" : "array",\r
+ "items" : {\r
+ "$ref" : "#/definitions/RouteServer"\r
+ }\r
+ },\r
+ "host" : {\r
+ "type" : "string"\r
+ },\r
+ "namespace" : {\r
+ "type" : "string"\r
+ },\r
+ "publish_port" : {\r
+ "type" : "string"\r
+ },\r
+ "enable_ssl" : {\r
+ "type" : "boolean",\r
+ "default" : false\r
+ },\r
+ "consulServiceName" : {\r
+ "type" : "string"\r
+ },\r
+ "publishProtocol" : {\r
+ "type" : "string"\r
+ }\r
+ }\r
+ },\r
+ "DiscoverInfo" : {\r
+ "type" : "object",\r
+ "properties" : {\r
+ "ip" : {\r
+ "type" : "string"\r
+ },\r
+ "port" : {\r
+ "type" : "integer",\r
+ "format" : "int32"\r
+ },\r
+ "enabled" : {\r
+ "type" : "boolean",\r
+ "default" : false\r
+ }\r
+ }\r
+ },\r
+ "IuiRouteInfo" : {\r
+ "type" : "object",\r
+ "required" : [ "servers", "serviceName", "url" ],\r
+ "properties" : {\r
+ "serviceName" : {\r
+ "type" : "string"\r
+ },\r
+ "url" : {\r
+ "type" : "string",\r
+ "example" : "/test",\r
+ "description" : "Target Service URL,start with /"\r
+ },\r
+ "control" : {\r
+ "type" : "string",\r
+ "example" : "0",\r
+ "description" : "[control Range] 0?default 1?readonly 2?hidden ",\r
+ "enum" : [ "0", "1", "2" ]\r
+ },\r
+ "status" : {\r
+ "type" : "string",\r
+ "example" : "1",\r
+ "description" : "[status] 1?abled 0?disabled ",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "visualRange" : {\r
+ "type" : "string",\r
+ "example" : "1",\r
+ "description" : "[visual Range]interSystem:0,inSystem:1",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "useOwnUpstream" : {\r
+ "type" : "string",\r
+ "example" : "0",\r
+ "description" : "[LB Policy]non_ip_hash:0,ip_hash:1",\r
+ "enum" : [ "0", "1" ]\r
+ },\r
+ "servers" : {\r
+ "type" : "array",\r
+ "items" : {\r
+ "$ref" : "#/definitions/RouteServer"\r
+ }\r
+ },\r
+ "host" : {\r
+ "type" : "string"\r
+ },\r
+ "namespace" : {\r
+ "type" : "string"\r
+ },\r
+ "publish_port" : {\r
+ "type" : "string"\r
+ },\r
+ "enable_ssl" : {\r
+ "type" : "boolean",\r
+ "default" : false\r
+ },\r
+ "consulServiceName" : {\r
+ "type" : "string"\r
+ },\r
+ "publishProtocol" : {\r
+ "type" : "string"\r
+ }\r
+ }\r
+ },\r
+ "RouteServer" : {\r
+ "type" : "object",\r
+ "required" : [ "ip", "port" ],\r
+ "properties" : {\r
+ "ip" : {\r
+ "type" : "string"\r
+ },\r
+ "port" : {\r
+ "type" : "string"\r
+ },\r
+ "weight" : {\r
+ "type" : "integer",\r
+ "format" : "int32"\r
+ }\r
+ }\r
+ }\r
+ }\r
+}
\ No newline at end of file