forked from MekaAuto/MekaAuto-Front
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.http
More file actions
140 lines (111 loc) · 3.08 KB
/
Copy pathapi.http
File metadata and controls
140 lines (111 loc) · 3.08 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
### REGISTRO
### registro Back
POST https://mekautos.uniblockweb.com/api/auth/register
Content-Type: application/json
Accept: application/json
{
"name": "davidostos@gmail.com",
"email": "davisd@gmvail.com",
"phone_number": "123456789",
"password": "123456789"
}
###
POST http://127.0.0.1:8000/api/auth/register
Content-Type: application/json
Accept: application/json
redirect: follow
{
"name": "davidostos@gmail.com",
"email": "sdfgvssdasd@gmail.com",
"phone_number": "123456789",
"password": "123456789"
}
###
POST https://mekautos.uniblockweb.com/api/auth/register
Accept: application/json
Content-Type: application/json
{
"name": "david",
"email": "prueba2@gmail.com",
"password" : "12345678",
"phone_number": "4241234567",
"givenName" : "Nombre",
"familyName": "Apellido"
}
### LOGIN
### Login back
POST https://mekautos.uniblockweb.com/api/auth/login
Accept: application/json
Content-Type: application/json
{
"email": "prueba@gmail.com",
"password" : "12345678"
}
### Login back
POST https://mekautos.uniblockweb.com/api/auth/login
Accept: application/json
Content-Type: application/json
{
"email": "prueba2@ujyuitygmail.com",
"password" : "12345678"
}
### login Google
POST https://mekautos.uniblockweb.com/api/auth/googleUser
Accept: application/json
Content-Type: application/json
{
"familyName" : "Ostos",
"givenName" : "David",
"email": "davidostos2@gmail.com",
"imageUrl" : "https://lh3.googleusercontent.com/a/AAcHTtc-_Si48dFtZfLb_TvZofIhVrhKsB5Cw5szBCmjg1OfTdU=s96-c",
"idToken": "110767012227547596340"
}
### POST
GET https://mekautos.uniblockweb.com/api/post
Accept: application/json
Content-Type: application/json
### USER
POST https://mekautos.uniblockweb.com/api/auth/users
Accept: application/json
Content-Type: application/json
Authorization: Bearer 70|1TQiIqXKiBMfCEYYVKy3LPgUMeTUW6V9PkhPnU6E30ff629a
{
"access_token": "70|1TQiIqXKiBMfCEYYVKy3LPgUMeTUW6V9PkhPnU6E30ff629a"
}
### LOGOUT
POST https://mekautos.uniblockweb.com/api/auth/logout
Accept: application/json
Content-Type: application/json
Authorization: Bearer 50|FBODbdmxtT7qhxVVyXzLYlf7DxZUrZ2wgr5d3Plge4e9e2dc
{
"access_token": "50|FBODbdmxtT7qhxVVyXzLYlf7DxZUrZ2wgr5d3Plge4e9e2dc"
}
### recovery password
POST https://mekautos.uniblockweb.com/api/email-recover-password
Accept: application/json
Content-Type: application/json
{
"email" : "davidostos2@gmail.com"
}
### API Prueba
POST http://127.0.0.1:8000/api/auth/register
Accept: application/json
Content-Type: application/json
{
"name": "david",
"email": "sadsfdklkfsf@gmail.com",
"password" : "12345678",
"phone_number": "4241234567gvvngn"
}
###
POST http://127.0.0.1:8000/api/auth/login
Accept: application/json
Content-Type: application/json
{
"email": "davidostos2@gmail.com",
"password" : "123456"
}
###
GET https://fakestoreapi.com/products?offset=0&limit=10
Accept: application/json
Content-Type: application/json