Skip to content
This repository was archived by the owner on Jul 20, 2019. It is now read-only.
This repository was archived by the owner on Jul 20, 2019. It is now read-only.

Email management views #16

@cdriehuys

Description

@cdriehuys

The endpoint /account/emails/ should allow for listing and creating new emails. The endpoint /account/emails/<id>/ should allow for retrieving or deleting a specific email.

The creation payload should be

{
  "address": <email-address>
}

The info payload returned should be

{
  "address": <email-address>,
  "id": <uuid>,
  "is_primary": <boolean>,
  "is_verified": <boolean>,
  "time_created": <date-time>,
  "time_updated": <date-time>,
}

Acceptance Criteria

  1. Sending a GET request to the list endpoint should return a paginated list of emails.
  2. Sending a POST request containing a new email address to the list endpoint should create a new unverified email address for the requesting user and send a verification email.
  3. Sending a GET request to the detail endpoint should return the information for the specified email.
  4. Sending a DELETE request to a non-primary email should delete the email.
  5. Sending a DELETE request to the user's primary email address should fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions