jvalue/open-data-service-v1

ODS error messages should be in JSON format

Closed this issue · 1 comments

For example http://faui2o2f.cs.fau.de:8080/open-data-service/foo returns

Invalid query, see /api for available queries.

It would be nicer to have a response along the lines of

{
   status: 400,
   message: "Invalid query, see /api for available queries."
}

Mostly done, some Restlets are still missing (mostly services).

All Restlets should now extend .server.Restlet.BaseRestlet which ensures that all output forwarded to clients will be in JSON format.