# Criar Mailing
POST https://api.dooca.store/mailings
Body
{
"name": "Generic Name",
"email": "suporte@dooca.com.br"
}
Status: 201
# Deletar Mailing
DELETE https://api.dooca.store/mailings/:email
Parâmetro: O Email.
Response: 204
# Consultar Mailing
GET https://api.dooca.store/mailings/: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 Mailings
GET https://api.dooca.store/mailings
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 Mailing
GET https://api.dooca.store/mailings/resume
HTTP STATUS: 200 OK
{
"total": 3,
"mailings_count": 2,
"customers_count": 1
}
# Todos Mailings
GET https://api.dooca.store/mailings/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"
}
Comentários
0 comentário
Por favor, entre para comentar.