-
Notifications
You must be signed in to change notification settings - Fork 0
/
Http-Server.http
34 lines (25 loc) · 1.02 KB
/
Http-Server.http
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
### Ruta 1: Obtener repuesta ###
GET http://localhost:5000/
##Auth
### Ruta 1: realizar login
POST http://localhost:5000/api/auth/login
Content-Type: application/json
{
"email": "ejemplo_usuario",
"password": "ejemplo_contraseña"
}
### Ruta 2: realizar registro
POST http://localhost:5000/api/auth/register
Content-Type: application/json
{
"email": "[email protected]",
"name": "mtrxssalo12",
"password": "marcos@31103"
}
### Rutas para obtener los usuarios
### Ruta 1: Obtner un usuario por id
GET http://localhost:5000/api/get/user/66247efcc454296122dafc03
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2MjQ3ZWZjYzQ1NDI5NjEyMmRhZmMwMyIsImlhdCI6MTcxMzY2NzgzNywiZXhwIjoxNzEzNjc1MDM3fQ.HsRMH4pETxB8jsiZ_Q-7Lj9mQWo-aH--k6rMf5JUCSY
### Ruta 2: Obtner todos los usuarios
GET http://localhost:5000/api/get/users
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2MjQ3ZWZjYzQ1NDI5NjEyMmRhZmMwMyIsImlhdCI6MTcxMzY2NzgzNywiZXhwIjoxNzEzNjc1MDM3fQ.HsRMH4pETxB8jsiZ_Q-7Lj9mQWo-aH--k6rMf5JUCSY