ADSP-EcoTrekker-Project / EcoTrekker

3 stars 1 forks source link

Rest Endpoint Validation Changes #60

Closed Andy3189 closed 6 months ago

Andy3189 commented 8 months ago

Since we have new parameters line and gamification those will have to be validated aswell

arslanerdemm commented 7 months ago
  • line parameter must not be empty for bus or for routes without distances

so line parameter has to be given when E-Bus, S-Bahn, U-Bahn or Tram is selected as device, but only if the distance is not given? So if E-Bus, S-Bahn, U-Bahn or Tram is selected but the distance is also given, then the line can be left out. But if the distance isn't given then for those vehicles an error should appear that the line has to be entered? @Andy3189

Andy3189 commented 7 months ago

yes, basically as soon as we need the distance service we need the line, otherwise it doesnt matter at all and currently the depot service is only implemented for bus routes, so the line has to be given there aswell

Andy3189 commented 7 months ago

Also the vehicle must be entered in URI format, so f.e. /car/e-car