Closed ghsnd closed 9 years ago
When posting the example template from the documentation (where the label is missing), a 500 Internal Server Error is returned.
label
500 Internal Server Error
curl -v -d @template.ttl -X POST -H "Content-Type: application/json" "http://localhost:8080/e-link/templates"
where template.ttl is
{ "query":" PREFIX geo-pos: <http://www.w3.org/2003/01/geo/wgs84_pos#> CONSTRUCT { <@@@entity_uri@@@> geo-pos:lat ?lat . <@@@entity_uri@@@> geo-pos:long ?long . } WHERE { <@@@entity_uri@@@> geo-pos:lat ?lat . <@@@entity_uri@@@> geo-pos:long ?long . }", "endpoint":"http://factforge.net/sparql" }
gives:
{ "exception": "eu.freme.broker.exception.InternalServerErrorException", "path": "/e-link/templates", "message": "JSONObject[\"label\"] not found.", "error": "Internal Server Error", "status": 500, "timestamp": 1440160260699 }
Here, a 400 Bad Request might be a better response.
400 Bad Request
fixed with https://github.com/freme-project/e-Link/issues/30
When posting the example template from the documentation (where the
label
is missing), a500 Internal Server Error
is returned.where template.ttl is
gives:
Here, a
400 Bad Request
might be a better response.