game_demo/docs/swagger.json

42 lines
1.2 KiB
JSON

{
"swagger": "2.0",
"info": {
"description": "This is a sample server Petstore server.",
"title": "GameDemo API",
"termsOfService": "http://swagger.io/terms/",
"contact": {},
"license": {},
"version": "1.0"
},
"basePath": "/api",
"paths": {
"/v1/games": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"summary": "获取多个游戏",
"parameters": [
{
"type": "string",
"description": "auth by /auth",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "{\"code\" : 200, \"data\" : {}, msg: \"ok\"}",
"schema": {
"type": "string"
}
}
}
}
}
}
}