Skip to content
Paul Dilyard edited this page Sep 29, 2015 · 1 revision

*Add an email to the list

POST /news
{
  "email": String
}

HTTP/1.1 201 Created
{
  "_id": String,
  "email": String,
  "created": String
}

Get a single email from the list

GET /news/:id
Auth -> admin, staff

HTTP/1.1 200 OK
{
  "_id": String,
  "email": String,
  "created": String
}

Get a list of emails on the list

GET /news
Auth -> admin, staff

HTTP/1.1 200 OK
{
  "news": [{
    "_id": String,
    "email": String,
    "created": String
  }]
}

*Delete an email from the list

DELETE /news/:id
Auth -> admin, staff

HTTP/1.1 200 OK
{
  "_id": String
}
Clone this wiki locally