-
Notifications
You must be signed in to change notification settings - Fork 1
/
authentication.yml
48 lines (47 loc) · 993 Bytes
/
authentication.yml
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
User log-in returns an access token available for 20 mins
---
tags:
- name: Users
description: A JSON request to create a user
consumes:
- application/json
produces:
- application/json
parameters:
- in: body
name: body
description: User info to log-in
required: true
schema:
type: object
required:
- email
- password
properties:
username:
type: string
email:
type: string
password:
type: string
format: password
example:
{username: Agustín , email: [email protected], password: "**********"}
responses:
202:
description: Successful operation
schema:
type: object
properties:
key:
type: string
value:
type: string
example:
{access_token: "owpf8auifbt4tnf..."}
400:
description: Missing or invalid parameters
401:
description: Unauthorized
500:
description: Server error