gost / server

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

Refactor Api interface - path string #91

Closed bertt closed 7 years ago

bertt commented 7 years ago

In the APi interface (https://github.com/Geodan/gost/blob/master/src/sensorthings/models/models.go#L17) the GET methods have path string as parameter, for example:

GetThing(id interface{}, qo *odata.QueryOptions, path string) (*entities.Thing, error)

But the POST/PATCH methods not:

PostThing(thing *entities.Thing) (*entities.Thing, []error)

For fixing issue https://github.com/Geodan/gost/issues/83 (and maybe other issues) we need to have the path in all HTTP methods

bertt commented 7 years ago

probably don't need this now because fix #83 with middleware https://github.com/Geodan/gost/pull/93