Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 456 Bytes

load-surveys.md

File metadata and controls

14 lines (10 loc) · 456 Bytes

List surveys

Success case

  1. ✅ Receive a GET request on route /api/surveys
  2. ✅ Validate if the request was executed by an user
  3. ✅ Return 204 if there are no surveys
  4. ✅ Return 200 with the survey data

Exceptions

  1. ✅ Return error 404 if the API doesn't exist
  2. ✅ Return error 403 if the request doesn't come from an user
  3. ✅ Return error 500 if there is an error while listing the surveys