sensorbucket / SensorBucket

IoT data processing gateway, for uniform consumption of many data formats
https://sensorbucket.nl
2 stars 0 forks source link

Feat: Auto generate Go Library for API Endpoints #41

Closed TimVosch closed 1 year ago

TimVosch commented 1 year ago

This PR introduces auto-generated pkg/api package that can be used to call API Endpoints. These are the same endpoints any user would use, thus conforming to the Eat Your Own Dogfood principle.

Currently the generated code creates custom models for every API Response, except for an error response web.APIError such that a service can directly forward the error