yangweichen / inspection_app

0 stars 0 forks source link

Retrieve Reports: Single Truck #22

Open jakepeyser opened 7 years ago

jakepeyser commented 7 years ago

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

  1. Make sure logged in user is a member of designated company
  2. Retrieve and send back all reports for designated truck

Should return: 200: success - list of all truck reports 401: Unauthorized

Response payload:

{
  reports: [
    {
      reportId: 123,
      submissionDate: "2/2/2017"
    }, {...}
  ]
}