yangweichen / inspection_app

0 stars 0 forks source link

Retrieve Report Details #23

Open jakepeyser opened 7 years ago

jakepeyser commented 7 years ago

GET api/company/:companyId/truck/:vin/reports/:reportId

  1. Make sure logged in user is a member of designated company
  2. Retrieve and send back the designated report

Should return: 200: success - report responses 401: Unauthorized

Response payload:

{
  reportId: 123,
  submissionDate: "2/2/2017",
  responses: [
    {
      question: "Wipers?",
      response: false,
      comments: "Example comment"
    }, {...}
  ]
}