Closed bertt closed 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
probably don't need this now because fix #83 with middleware https://github.com/Geodan/gost/pull/93
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:
But the POST/PATCH methods not:
For fixing issue https://github.com/Geodan/gost/issues/83 (and maybe other issues) we need to have the path in all HTTP methods