Design a REST API

Design a REST API for an email client.

  1. What resources would there be and how do they relate to each other? What attributes would these resources have?
  2. What endpoints (HTTP method and URL) would you have? Briefly describe what they would be used for.