-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
45 lines (45 loc) · 1017 Bytes
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
openapi: "3.0.0"
info:
version: 1.0.0
title: OpenAPI Backend
servers:
- url: https://openapi.cn-north.lc.example.com/
description: Production server
- url: https://stg-openapi.cn-north.lc.example.com/
description: Staging server for testing / release.
- url: http://localhost:8080/
description: Local server for development
paths:
/user/current:
get:
summary: Request user for current user.
tags:
- User
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/User'
components:
securitySchemes:
leancloudAuth:
type: http
scheme: bearer
bearerFormat: LeanCloud
schemas:
User:
type: object
required:
- userId
- nickname
properties:
objectId:
type: string
userId:
type: string
nickname:
type: string
security:
- leancloudAuth: []