docs-v2/api-docs
dependabot[bot] e9e6a948af
Bump prismjs from 1.23.0 to 1.24.0 in /api-docs (#2790)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.24.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-28 15:31:45 -06:00
..
cloud Api docs update (#2676) 2021-06-07 17:04:33 -05:00
v2.0 Api docs update (#2676) 2021-06-07 17:04:33 -05:00
README.md Install dependencies as project dependencies from NPM repo (#2476) 2021-05-24 12:11:01 -05:00
generate-api-docs.sh api-docs: return error if bundle HTML is not appended to .tmp files. (#2585) 2021-05-25 10:28:36 -05:00
getswagger.sh Api docs update (#2676) 2021-06-07 17:04:33 -05:00
package.json Install dependencies as project dependencies from NPM repo (#2476) 2021-05-24 12:11:01 -05:00
template.hbs Install dependencies as project dependencies from NPM repo (#2476) 2021-05-24 12:11:01 -05:00
yarn.lock Bump prismjs from 1.23.0 to 1.24.0 in /api-docs (#2790) 2021-06-28 15:31:45 -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

The 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.

In your terminal, from the root of the docs repo, run:




cd api-docs

# Install dependencies
yarn install

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