yangweichen / inspection_app

0 stars 0 forks source link

Match VIN Route #16

Open jakepeyser opened 7 years ago

jakepeyser commented 7 years ago

GET api/company/:companyId/trucks/:vin/questions:

  1. Look up corresponding truck
  2. Make sure logged in user has access to truck
  3. Retrieve and send corresponding list of questions

Should return: 200: success - list of questions 401: Unauthorized user for input VIN

Response payload:

{
  vin: "12345678",
  questions: [
    {
      questionId: 123,
      zone: 1,
      text: "Wipers?"
    }, {...}
  ]
}
jakepeyser commented 7 years ago

@yangweichen added example response payload to above details