This repository contains tools to re-generate API from InfluxDB swagger.yml.
Supported are following client libraries:
- Java,
- C#,
- Python,
- Php
- simplify swagger updates
- centralize OpenApi generator for all languages on one place
- tag swagger.yml with "client libraries" and update generator to filter by this tag
- after API stabilization and swagger cleanup generate directly from https://github.com/influxdata/influxdb/blob/master/http/swagger.yml
- Mac/Linux, git, docker, GNU make
Makefile
contains all needed
- Make required changes in
./swagger.yml
- Build openapi generator
make openapi-generator
make generate-java
,make generate-csharp
,make generate-python
,make generate-php
will generates sources for specific client library.make generate-all
- generate new API stubs from./swagger.yml
for all client libraries- optionaly
make check-all
will try to compile and run tests for all client libraries make pr-java
,make pr-csharp
,make pr-python
,make pr-php
will create PR into specific client library