generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
authSignin.yaml
48 lines (48 loc) · 1.21 KB
/
authSignin.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
post:
description: Sign in a user
operationId: sign_in
requestBody:
content:
application/json:
schema:
type: object
properties:
email:
type: string
format: email
password:
type: string
required:
- email
- password
responses:
'200':
description: Successful login
content:
application/json:
schema:
type: object
properties:
token:
type: string
description: Access token for the authenticated session
user:
type: object
properties:
email:
type: string
format: email
description: Email of the authenticated user
required:
- token
- user
headers:
Set-Cookie:
description: Session cookie for the authenticated user
schema:
type: string
'401':
description: Authentication failed
tags:
- auth
x-openapi-router-controller: openapi_server.controllers.auth_controller