META-INF.resources.menu.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-bootstrap-ui
Show all versions of swagger-bootstrap-ui
Swagger-Bootstrap-UI is the front of the UI Swagger implementation, using jQuery+bootstrap implementation, the purpose is to replace the default UI Swagger implementation of the Swagger-UI, so that the document is more friendly...
{
"swagger": "2.0",
"info": {
"description": "swagger-bootstrap-ui-demo RESTful APIs",
"version": "1.0",
"title": "swagger-bootstrap-ui-demo RESTful APIs",
"termsOfService": "http://www.xx.com/",
"contact": {
"name": "[email protected]"
}
},
"host": "localhost:8999",
"basePath": "/",
"tags": [
{
"name": "菜单",
"description": "Menu Controller"
},
{
"name": "测试用例",
"description": "Test Controller"
}
],
"paths": {
"/api/menu/getMenu": {
"post": {
"tags": [
"菜单"
],
"summary": "获取菜单",
"description": "获取菜单,考虑递归的情况",
"operationId": "getMenuUsingPOST",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Menu"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
},
"/api/test/deletetest": {
"delete": {
"tags": [
"测试用例"
],
"summary": "deletetest",
"description": "deletetest测试说明2",
"operationId": "deletetestUsingDELETE",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"parameters": [
{
"name": "code",
"in": "query",
"description": "code",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RestMessage"
}
},
"204": {
"description": "No Content"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
}
}
},
"/api/test/puttest": {
"put": {
"tags": [
"测试用例"
],
"summary": "puttest",
"description": "puttest测试说明2",
"operationId": "puttestUsingPUT",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"parameters": [
{
"name": "code",
"in": "query",
"description": "code",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RestMessage"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
},
"/api/test/reqbody": {
"post": {
"tags": [
"测试用例"
],
"summary": "RequestBody接口类型",
"description": "RequestBody测试接口,实体类型",
"operationId": "reqbodyUsingPOST",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"parameters": [
{
"in": "body",
"name": "reqEntity",
"description": "reqEntity",
"required": true,
"schema": {
"$ref": "#/definitions/ReqEntity"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RestMessage"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
},
"/api/test/reqbody1": {
"post": {
"tags": [
"测试用例"
],
"summary": "ModelAttribute",
"description": "ModelAttribute类型参数",
"operationId": "reqbody1UsingPOST",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"parameters": [
{
"name": "name",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "tel",
"in": "query",
"description": "222",
"required": false,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RestMessage"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
},
"/api/test/reqbody2": {
"post": {
"tags": [
"测试用例"
],
"summary": "RequestBody接口类型2",
"description": "RequestBody测试接口2-string类型",
"operationId": "reqbody2UsingPOST",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"parameters": [
{
"in": "body",
"name": "reqEntity",
"description": "reqEntity",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RestMessage"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
},
"/api/test/reqbody3": {
"post": {
"tags": [
"测试用例"
],
"summary": "header参数",
"description": "header参数",
"operationId": "reqbody3UsingPOST",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"parameters": [
{
"name": "code",
"in": "query",
"description": "code",
"required": false,
"type": "string"
},
{
"name": "headerparam",
"in": "header",
"description": "headerparam",
"required": false,
"type": "string"
},
{
"name": "page",
"in": "query",
"description": "page",
"required": false,
"type": "integer",
"format": "int32"
},
{
"name": "page1",
"in": "query",
"description": "page1",
"required": false,
"type": "integer",
"format": "int64"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RestMessage"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
},
"/api/test/uploadMaterial": {
"post": {
"tags": [
"测试用例"
],
"summary": "文件素材上传接口",
"operationId": "uploadMaterialUsingPOST",
"consumes": [
"application/json"
],
"produces": [
"*/*"
],
"parameters": [
{
"in": "body",
"name": "file",
"description": "文件流对象,接收数组格式",
"required": true,
"schema": {
"$ref": "#/definitions/MultipartFile"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RestMessage"
}
},
"201": {
"description": "Created"
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
}
}
}
},
"definitions": {
"Menu": {
"type": "object",
"properties": {
"childrens": {
"type": "array",
"items": {
"$ref": "#/definitions/Menu"
}
},
"label": {
"type": "string"
},
"text": {
"type": "string"
}
}
},
"ReqEntity": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"tel": {
"type": "string",
"example": "555",
"description": "222"
}
}
},
"RestMessage": {
"type": "object",
"properties": {
"data": {
"type": "object"
},
"errCode": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"success": {
"type": "boolean"
}
}
}
}
}