-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
94 lines (93 loc) · 2.75 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
openapi: 3.0.3
info:
title: AccountService API
version: 0.0.1
paths:
/accounts:login:
post:
tags:
- AccountService
operationId: AccountService_Login
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/v1.LoginRequest'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/v1.LoginResponse'
/accounts:signup:
post:
tags:
- AccountService
operationId: AccountService_Signup
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/v1.SignupRequest'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/v1.SignupResponse'
/accounts:verify:
get:
tags:
- AccountService
operationId: AccountService_Verify
parameters:
- name: token
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/v1.VerifyResponse'
components:
schemas:
v1.LoginRequest:
type: object
properties:
email:
type: string
password:
type: string
v1.LoginResponse:
type: object
properties:
token:
type: string
v1.SignupRequest:
type: object
properties:
email:
type: string
password:
type: string
v1.SignupResponse:
type: object
properties:
message:
type: string
v1.VerifyResponse:
type: object
properties:
message:
type: string
tags:
- name: AccountService