Open TomPeak opened 1 year ago
{ "/cars/:carID" :"/cars?carUse=:carID", "/checklist/:id/*" : "/checklist?carId_like=:id", "/time/:carID/:cars" : "/time/", "/carUses/:carID" : "/carUses?id=:carID" }
my routes
the data.
{ "cars": [ { "id": "5f437863626ac03e653ab07e", "name": "41-010" }, { "id": "5f437adb626ac03e653ab07f", "name": "41-011" }, { "id": "5f437adf626ac03e653ab080", "name": "41-013" } ], "carUses": [ { "id": "5f4769bb30c85a7d579976c0", "use": "KTW" }, { "id": "5f5a1188aef7d34478b4216b", "use": "RTW" }, { "id": "5f5a1195aef7d34478b42173", "use": "ITW" }, { "id": "5f5a11a2aef7d34478b4217b", "use": "NAW" } ], "checklist": [ { "id": "5f5a2fdbe2fac06e919a9c24", "text": "Prüfliste KTW", "questionGroups": [ { "id": "5f5a2fdbe2fac06e919a9c25", "text": "Dienstbeginn Fahrer KTW", "questions": [ { "id": "5f5a2fdbe2fac06e919a9c26", "text": "Nicht dokumentierte offensichtliche Beschädigungen am KFZ", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a2fdbe2fac06e919a9c27", "text": "Funktionstüchtigkeit aller Leuchtmittel", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a2fdbe2fac06e919a9c28", "text": "Reifen (Beschädigung & Profiltiefe)", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null } ] } ], "complete": true, "carUseId": "5f4769bb30c85a7d579976c0", "carId": "5f437863626ac03e653ab07e", "from": "2020-09-10T07:00:00", "until": "2020-09-10T19:00:00" }, { "id": "5f5a4657638e23689d3ec3ef", "text": "Prüfliste RTW", "questionGroups": [ { "id": "5f5a4657638e23689d3ec3f0", "text": "Dienstbeginn Fahrer RTW", "questions": [ { "id": "5f5a4657638e23689d3ec3f1", "text": "Nicht dokumentierte offensichtliche Beschädigungen am KFZ", "questionKind": "choice", "answer": "NEB", "possibleAnswers": [ "EB", "NEB" ], "comment": "" }, { "id": "5f5a4657638e23689d3ec3f2", "text": "Funktionstüchtigkeit aller Leuchtmittel", "questionKind": "choice", "answer": "EB", "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a4657638e23689d3ec3f3", "text": "Reifen (Beschädigung & Profiltiefe)", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null } ] }, { "id": "5f5a4657638e23689d3ec3f4", "text": "Dienstbeginn San1 RTW", "questions": [ { "id": "5f5a4657638e23689d3ec3f5", "text": "Defibrillator inkl. Zubehör einsatzbereit", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": "" }, { "id": "5f5a4657638e23689d3ec3f6", "text": "Sauerstoff > 50bar & Masken vorhanden", "questionKind": "choice", "answer": "EB", "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a4657638e23689d3ec3f7", "text": "Absaugeinheit einsatzbereit", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null } ] } ], "complete": false, "carUseId": "5f5a1188aef7d34478b4216b", "carId": "5f437863626ac03e653ab07e", "from": "2020-09-10T07:00:00", "until": "2020-09-10T19:00:00" } ] }
I want the filter carId, at christ sake it don't work. tried routes with / as well. no success.
plese help,
tom
{ "/cars/:carID" :"/cars?carUse=:carID", "/checklist/:id/*" : "/checklist?carId_like=:id", "/time/:carID/:cars" : "/time/", "/carUses/:carID" : "/carUses?id=:carID" }
my routes
the data.
{ "cars": [ { "id": "5f437863626ac03e653ab07e", "name": "41-010" }, { "id": "5f437adb626ac03e653ab07f", "name": "41-011" }, { "id": "5f437adf626ac03e653ab080", "name": "41-013" } ], "carUses": [ { "id": "5f4769bb30c85a7d579976c0", "use": "KTW" }, { "id": "5f5a1188aef7d34478b4216b", "use": "RTW" }, { "id": "5f5a1195aef7d34478b42173", "use": "ITW" }, { "id": "5f5a11a2aef7d34478b4217b", "use": "NAW" } ], "checklist": [ { "id": "5f5a2fdbe2fac06e919a9c24", "text": "Prüfliste KTW", "questionGroups": [ { "id": "5f5a2fdbe2fac06e919a9c25", "text": "Dienstbeginn Fahrer KTW", "questions": [ { "id": "5f5a2fdbe2fac06e919a9c26", "text": "Nicht dokumentierte offensichtliche Beschädigungen am KFZ", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a2fdbe2fac06e919a9c27", "text": "Funktionstüchtigkeit aller Leuchtmittel", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a2fdbe2fac06e919a9c28", "text": "Reifen (Beschädigung & Profiltiefe)", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null } ] } ], "complete": true, "carUseId": "5f4769bb30c85a7d579976c0", "carId": "5f437863626ac03e653ab07e", "from": "2020-09-10T07:00:00", "until": "2020-09-10T19:00:00" }, { "id": "5f5a4657638e23689d3ec3ef", "text": "Prüfliste RTW", "questionGroups": [ { "id": "5f5a4657638e23689d3ec3f0", "text": "Dienstbeginn Fahrer RTW", "questions": [ { "id": "5f5a4657638e23689d3ec3f1", "text": "Nicht dokumentierte offensichtliche Beschädigungen am KFZ", "questionKind": "choice", "answer": "NEB", "possibleAnswers": [ "EB", "NEB" ], "comment": "" }, { "id": "5f5a4657638e23689d3ec3f2", "text": "Funktionstüchtigkeit aller Leuchtmittel", "questionKind": "choice", "answer": "EB", "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a4657638e23689d3ec3f3", "text": "Reifen (Beschädigung & Profiltiefe)", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null } ] }, { "id": "5f5a4657638e23689d3ec3f4", "text": "Dienstbeginn San1 RTW", "questions": [ { "id": "5f5a4657638e23689d3ec3f5", "text": "Defibrillator inkl. Zubehör einsatzbereit", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": "" }, { "id": "5f5a4657638e23689d3ec3f6", "text": "Sauerstoff > 50bar & Masken vorhanden", "questionKind": "choice", "answer": "EB", "possibleAnswers": [ "EB", "NEB" ], "comment": null }, { "id": "5f5a4657638e23689d3ec3f7", "text": "Absaugeinheit einsatzbereit", "questionKind": "choice", "answer": null, "possibleAnswers": [ "EB", "NEB" ], "comment": null } ] } ], "complete": false, "carUseId": "5f5a1188aef7d34478b4216b", "carId": "5f437863626ac03e653ab07e", "from": "2020-09-10T07:00:00", "until": "2020-09-10T19:00:00" } ] }
I want the filter carId, at christ sake it don't work. tried routes with / as well. no success.
plese help,
tom