{ "swagger": "2.0", "info": { "description": "一个简单的个人所用的单点登录", "title": "syz", "termsOfService": "http://localhost:8080/index.html", "contact": { "name": "zhouxhere", "url": "http://localhost:8080/index.html", "email": "zhouxhere@qq.com" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "1.0" }, "host": "localhost:8080", "basePath": "/", "paths": { "/login": { "post": { "description": "处理用户登录请求", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "认证" ], "summary": "用户登录", "responses": { "200": { "description": "登录成功", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/logout": { "get": { "description": "处理用户登出请求", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "认证" ], "summary": "用户登出", "responses": { "200": { "description": "登出成功", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } } }, "securityDefinitions": { "BasicAuth": { "type": "basic" } }, "externalDocs": { "description": "OpenAPI", "url": "https://swagger.io/resources/open-api/" } }