45 lines
1017 B
YAML
45 lines
1017 B
YAML
basePath: /
|
|
definitions:
|
|
models.CurrentUserResponse:
|
|
properties:
|
|
ip:
|
|
type: string
|
|
userEmail:
|
|
type: string
|
|
userId:
|
|
type: string
|
|
valid:
|
|
type: boolean
|
|
type: object
|
|
host: localhost:8080
|
|
info:
|
|
contact:
|
|
email: support@swagger.io
|
|
name: API Support
|
|
url: http://www.swagger.io/support
|
|
description: This is a sample server celler server.
|
|
license:
|
|
name: Apache 2.0
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
termsOfService: http://swagger.io/terms/
|
|
title: Swagger Example API
|
|
version: "1.0"
|
|
paths:
|
|
/:
|
|
get:
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
items:
|
|
$ref: '#/definitions/models.CurrentUserResponse'
|
|
type: array
|
|
summary: 获取当前用户的请求
|
|
securityDefinitions:
|
|
ApiKeyAuth:
|
|
description: Description for what is this security definition being used
|
|
in: header
|
|
name: Authorization
|
|
type: apiKey
|
|
swagger: "2.0"
|