# Pasar una suscripcion a suspendida por ID
# Delete /subscriptions/{id}
Parametro:
id integer(path)
1
2
2
# Obtener a los usuarios por filtros
# GET /users
Parametros:
date from (string)
date_to (string)
status (string)
curl -X GET "https://suscripcion.expreso.ec/api/v1/users" -H "accept: application/json" -H "Authorization: Bearer password" -H "X-CSRF-TOKEN: "
Request URL:
https://suscripcion.expreso.ec/api/v1/users
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# Response body
{
"data": [
{
"id": 1,
"email": "mauriciorucci@gmail.com",
"first_name": "Mauricio",
"last_name": "Rucci",
"avatar": "https://lh3.googleusercontent.com/a-/AOh14Gi1lJ9LAiDmfQ1FQGRDke_dIHuL_sqbsnP3sFaYBw",
"phone_prefix": null,
"phone_number": null,
"gender": null,
"birth_date": null,
"identification_type": null,
"identification_number": null,
"provider": "google",
"created_at": "2020-04-30T09:06:56-03:00",
"updated_at": "2020-04-30T09:06:56-03:00",
"banned_at": null,
"deleted_at": null
},
],
"links": {
"first": "https://suscripcion.expreso.ec/api/v1/users?page=1",
"last": "https://suscripcion.expreso.ec/api/v1/users?page=38",
"prev": null,
"next": "https://suscripcion.expreso.ec/api/v1/users?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 38,
"path": "https://suscripcion.expreso.ec/api/v1/users",
"per_page": 15,
"to": 15,
"total": 558
}
}
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
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
# Response headers
cache-control: no-cache, private
connection: keep-alive
content-type: application/json
date: Thu, 07 May 2020 19:45:55 GMT
server: nginx
strict-transport-security: max-age=31536000; includeSubDomains
transfer-encoding: chunked
x-powered-by: PHP/7.3.13
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# Crear un usuario
# POST /users
Ejemplo:
{
"first_name": "John",
"last_name": "Doe",
"email": "user@example.com",
"password": "",
"phone_prefix": "+54351",
"phone_number": "1599685",
"identification_type": "Cedula",
"identification_number": "6998546",
"birth_date": "1970-01-23",
"gender": "female|male|null",
"avatar": "https://api.adorable.io/avatars/285/abott@adorable.png",
"newsletter_opt_in": false,
"country": "AR",
"site": "Diario"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Obtener a un usuario por ID
# GET /users/{id}
curl -X GET "https://suscripcion.expreso.ec/api/v1/users/1" -H "accept: application/json" -H "Authorization: Bearer password" -H "X-CSRF-TOKEN: "
Request URL:
https://suscripcion.expreso.ec/api/v1/users/id}
1
2
3
4
5
2
3
4
5
# Response body
{
"data": {
"id": 1,
"email": "mauriciorucci@gmail.com",
"first_name": "Mauricio",
"last_name": "Rucci",
"avatar": "https://lh3.googleusercontent.com/a-/AOh14Gi1lJ9LAiDmfQ1FQGRDke_dIHuL_sqbsnP3sFaYBw",
"phone_prefix": null,
"phone_number": null,
"gender": null,
"birth_date": null,
"identification_type": null,
"identification_number": null,
"provider": "google",
"created_at": "2020-04-30T09:06:56-03:00",
"updated_at": "2020-04-30T09:06:56-03:00",
"banned_at": null,
"deleted_at": null
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Response headers
cache-control: no-cache, private
connection: keep-alive
content-type: application/json
date: Thu, 07 May 2020 19:52:00 GMT
server: nginx
strict-transport-security: max-age=31536000; includeSubDomains
transfer-encoding: chunked
x-powered-by: PHP/7.3.13
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# Borrar a un usuario por ID
# DELETE /users/{id}
Parametro:
id integer(path)
1
2
2
# Buscar un usuario por Email
# Get /users/email/{email}
Parametro:
string email(path)
1
2
2
# Crear un usuario para Login
# POST /users/login
# Ejemplo
{
"email": "user@example.com",
"password": ""
}
1
2
3
4
2
3
4
{
"id": 0,
"email": "string",
"first_name": "string",
"last_name": "string",
"avatar": "string",
"phone_prefix": "string",
"phone_number": "string",
"gender": "string",
"birth_date": "string",
"identification_type": "string",
"identification_number": 0,
"provider": "string",
"created_at": "string",
"updated_at": "string",
"banned_at": "string",
"deleted_at": "string"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19