导出API API导出样例 以下是一个OAS2版本的导出定义示例: { "swagger" : "2.0", "info" : { "description" : "Export from api group group4", "version" : "1.0.0", "title" : "Ctyun Gateway API" }, "basePath" : "/user1", "paths" : { "/uhe/:c" : { "post" : { "summary" : "", "operationId" : "uhecByPOST", "schemes" : [ "http", "https" ], "parameters" : [ { "name" : "a", "in" : "query", "description" : "", "required" : false, "type" : "string", "xctyunapigatewayparameterdemo" : "1", "xctyunapigatewaybackendlocation" : "query", "xctyunapigatewaybackendname" : "a" }, { "name" : "b", "in" : "header", "description" : "", "required" : false, "type" : "string", "xctyunapigatewayparameterdemo" : "2", "xctyunapigatewaybackendlocation" : "header", "xctyunapigatewaybackendname" : "b" }, { "name" : "c", "in" : "path", "description" : "", "required" : false, "type" : "string", "xctyunapigatewayparameterdemo" : "test", "xctyunapigatewaybackendlocation" : "path", "xctyunapigatewaybackendname" : "change" } ], "xctyunapigatewayrequestargumentmode" : "PASS", "xctyunapigatewaycommonparameters" : [ { "paramName" : "num", "paramValue" : "2", "paramLocation" : "query", "description" : "" } ], "xctyunapigatewayapiname" : "testaacloneclone", "xctyunapigatewaysystemparameters" : [ ], "xctyunapigatewaybackend" : { "gwServiceCode" : "ea180dd257714a56af39d3408fdf072b", "postPath" : "/ko/[change]/", "postMethod" : "POST", "timeout" : 10000.0 }, "xctyunapigatewayisantireplay" : false } }, "definitions" : { "schema3" : { "type" : "object", "required" : [ "name" ], "properties" : { "id" : { "type" : "integer", "format" : "int32" }, "name" : { "type" : "string" }, "status" : { "type" : "string" }, "dogProject" : { "type" : "object", "properties" : { "name" : { "type" : "string" }, "id" : { "type" : "integer", "format" : "int32" } } } } } } }