swagger-decorator
Version:
Decorator for Koa2 and koa-router, Auto-Generate Swagger Docs
9 lines (6 loc) • 907 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
// 初始化 SwaggerJSON 配置
var swaggerJSON = exports.swaggerJSON = JSON.parse("\n {\n \"swagger\": \"2.0\",\n \"info\": {\n \"version\": \"1.0.0\",\n \"title\": \"Swagger Petstore\",\n \"description\": \"A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification\",\n \"termsOfService\": \"http://swagger.io/terms/\",\n \"contact\": {\n \"name\": \"Swagger API Team\"\n },\n \"license\": {\n \"name\": \"MIT\"\n }\n },\n \"host\": \"petstore.swagger.io\",\n \"basePath\": \"/api\",\n \"schemes\": [\n \"http\"\n ],\n \"consumes\": [\n \"application/json\"\n ],\n \"produces\": [\n \"application/json\"\n ]\n }\n ");