mozilla-sensorweb / sensorthings

Node implementation of the OGC SensorThings API
Mozilla Public License 2.0
14 stars 9 forks source link

GET request to entities name (in singular) is working in some cases that it should not #161

Open isabelrios opened 7 years ago

isabelrios commented 7 years ago

This request: curl -X GET -H "Cache-Control: no-cache" "http://localhost:8080/v1.0/FeatureOfInterest" is working well the same way than curl -X GET -H "Cache-Control: no-cache" "http://localhost:8080/v1.0/FeaturesOfInterest"

It should only work the second request, in plural, not the one in singular

isabelrios commented 7 years ago

It happens the same for the rest of entities names in singular: curl -X GET -H "Cache-Control: no-cache" "http://localhost:8080/v1.0/Thing" curl -X GET -H "Cache-Control: no-cache" "http://localhost:8080/v1.0/Sensor" ...