HTWK-App / Server-Application

Server-Application, designed for use with the HTWK Smartphone-App
GNU General Public License v3.0
1 stars 1 forks source link

API - Test: /app/timetable/<a-zA-Z0-9> #30

Closed Zipunrar closed 10 years ago

Zipunrar commented 10 years ago

Requests with wrong Paramters causes several strange Responses:

"abc": Empty Response "CAL":

{
  "message": "404 Not Found",
  "exception": "org.springframework.web.client.HttpClientErrorException: 404 Not Found",
  "url": "http://localhost:8080/app/timetable/CAL"
}

"118":

{
  "message": "com.htwk.app.model.impl.Day cannot be cast to java.util.List",
  "exception": "java.lang.ClassCastException: com.htwk.app.model.impl.Day cannot be cast to java.util.List",
  "url": "http://localhost:8080/app/timetable/118"
}

Should be one general Response like Error-Page 404.

hknochi commented 10 years ago

already been solved