Closed bertt closed 7 years ago
Server should accept empty string as mandatory parameter.
Example: http post http://gost.geodan.nl/v1.0/Sensors { "name":"num_bikes_available", "encodingType": "application/pdf", "metadata": "", "description": "Number of bikes available" }
Actual response: { "error": { "status": "Bad Request", "code": 400, "message": [ "Missing mandatory parameter: Sensor.metadata" ] } }
Expected response: http 200 ok
Maybe this occurs also on other places.
but scratchpad returns http 400, BAD_REQUEST, "Request body has semantically invalid content"
or we must decide mandatory means non empty
Server should accept empty string as mandatory parameter.
Example: http post http://gost.geodan.nl/v1.0/Sensors { "name":"num_bikes_available", "encodingType": "application/pdf", "metadata": "", "description": "Number of bikes available" }
Actual response: { "error": { "status": "Bad Request", "code": 400, "message": [ "Missing mandatory parameter: Sensor.metadata" ] } }
Expected response: http 200 ok
Maybe this occurs also on other places.