Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 430 Bytes

File metadata and controls

14 lines (10 loc) · 430 Bytes

Poll List

Success case

  1. ✅ Receives a request of type GET in the route /api/surveys
  2. ✅ Validates if the request was made by a user
  3. ✅ Returns 204 if there is no poll
  4. ✅ Returns 200 with poll data

Exceptions

  1. ✅ Return 404 error if API does not exist
  2. ✅ Returns 403 error if not a user
  3. ✅ Returns 500 error if there is an error when trying to list the polls