{ "swagger": "2.0", "info": { "description": "An example of gin", "title": "Golang Gin API", "termsOfService": "https://github.com/EDDYCJY/go-gin-example", "contact": {}, "license": { "name": "MIT", "url": "https://github.com/EDDYCJY/go-gin-example/blob/master/LICENSE" }, "version": "1.0" }, "paths": { "/api/v1/getAllVehicles": { "get": { "description": "获取所有车辆信息", "summary": "GetAllVehicles", "responses": { "200": { "description": "{ \"code\": 200, \"data\": {}, \"msg\": \"ok\" }", "schema": { "type": "string" } } } } }, "/api/v1/index": { "get": { "description": "test", "summary": "Hello World", "responses": { "200": { "description": "{ \"code\": 200, \"data\": {}, \"msg\": \"ok\" }", "schema": { "type": "string" } } } } } } }