docs-v2/api-docs
Scott Anderson 5b9783c055
New support and feedback layout (#1423)
* WIP new feedback/support block

* restructured and restyled support and feedback section

* added api issue button to swagger-generated api docs, resolves #1415

* added community slack link, restyled ul for feedback block

* minor wording change in feedback section
2020-09-09 21:49:06 -06:00
..
v2.0 updated swagger.yml for beta-16 2020-08-06 13:12:03 -06:00
README.md minor update to api-doc readme 2019-09-30 10:59:25 -06:00
generate-api-docs.sh updated cloudformation template and api-docs generator 2020-09-02 17:48:46 -06:00
template.hbs New support and feedback layout (#1423) 2020-09-09 21:49:06 -06:00

README.md

Generate InfluxDB API docs

InfluxDB uses Redoc and redoc-cli to generate API documentation from the InfluxDB swagger.yml.

To minimize repo size, the generated API documentation HTML is gitignored, therefore not committed directly to the docs repo. The InfluxDB docs deployment process uses swagger files in the api-docs directory to generate version-specific API documentation.

Versioned swagger files

Structure versions swagger files using the following pattern:

api-docs/
  ├── v2.0/
  │     └── swagger.yml
  ├── v2.1/
  │     └── swagger.yml
  ├── v2.2/
  │     └── swagger.yml
  └── etc...

Generate API docs locally

Because the API documentation HTML is gitignored, you must manually generate it to view the API docs locally.

From the root of the docs repo, run:

# Install redoc-cli
npm install -g redoc-cli

# Generate the API docs
cd api-docs && generate-api-docs.sh