Criar Mailling
POST https://api.dooca.store/maillings
Body
{
"name": "Generic Name",
"email": "suporte@dooca.com.br"
}
Status: 201
Deletar Mailling
DELETE https://api.dooca.store/maillings/:email
Parâmetro: O Email.
Response: 204
Consultar Mailling
GET https://api.dooca.store/maillings/:email
Parâmetro: O Email.
HTTP STATUS: 200 OK
{
"name": "Generic Name",
"email": "suporte@dooca.com.br",
"gender": null,
"created_at": "2020-01-10 14:00:42"
}
Listar Maillings
GET https://api.dooca.store/maillings
HTTP STATUS: 200 OK
{
"name": "Generic Name",
"email": "suporte@dooca.com.br",
"gender": null,
"created_at": "2020-01-10 14:00:42"
},
{
"name": "Generic Name1",
"email": "suporte1@dooca.com.br",
"gender": null,
"created_at": "2020-01-10 14:06:44"
}
Resumo Mailling
GET https://api.dooca.store/maillings/resume
HTTP STATUS: 200 OK
{
"total": 3,
"mailings_count": 2,
"customers_count": 1
}
Todos Maillings
GET https://api.dooca.store/maillings/all
HTTP STATUS: 200 OK
{
"name": "Suporte Dooca",
"email": "suporte@dooca.com.br",
"gender": null,
"birthday": null,
"phone": null,
"is_customer": true,
"created_at": "2020-01-10 09:39:23"
},
{
"name": "Generic Name1",
"email": "suporte1@dooca.com.br",
"gender": null,
"birthday": null,
"phone": null,
"is_customer": false,
"created_at": "2020-01-10 14:06:44"
}