gost / server

GOST - Go implementation of OGC SensorThings API
MIT License
61 stars 19 forks source link

Creating sensor with wrong contenttype gives 500 #99

Closed bertt closed 7 years ago

bertt commented 7 years ago

sample:

http post http://localhost:8080/v1.0/Sensors { "name": "test", "description": "test", "encodingType": "test", "metadata": "Barometer" } actual result: 500 (server error) expected result: 400 (client error)

bertt commented 7 years ago

error: "Encoding not supported. Supported encoding:" file: sensorthings/entities/encodingtypes.go, function CreateEncodingType