Commit Graph

6 Commits

Author SHA1 Message Date
b1851eb819 refactor(api): move CLI-specific API contract into this repo, add openapi as submodule (#95) 2021-05-17 14:53:55 -04:00
223ae250a9 refactor: update codegen to use schema-less flux AST (#65) 2021-05-11 09:35:03 -04:00
c44fec7d6d feat(internal): add /query API to codegen (#62) 2021-05-05 11:01:24 -04:00
f95668ada6 refactor: improve codegen to support influx query rewrite (#60)
* build: add goimports to fmt target to remove unused imports
* feat: update codegen template to support returning raw response body
* feat: add support for gunzip-ing response bodies
* refactor: remove unused piece from codegen return values
2021-05-05 10:30:22 -04:00
73dc5ef63b feat(api): improve codegen outputs (#41)
* Use `[]byte` for generated request bodies when the source schema has `format: byte`
* Gzip-compress request bodies when `Content-Encoding: gzip` is set
* Require that all models returned as error conditions in our API implement the `error` interface
* Move the implementation for `api.HealthCheck` out of `ping.go` and into `api/error.go`


Co-authored-by: William Baker <55118525+wbaker85@users.noreply.github.com>
2021-04-26 10:10:45 -04:00
079f707c21 refactor: replace bash hacks with custom templates (#34) 2021-04-19 15:51:53 -04:00