hotfix(api): add info content for v2.4 API (#4391)
* hotfix(api): add info content for v2.4 API * Update api-docs/openapi/content/v2.4/v1compat/info.yml Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>pull/4397/head^2
parent
7dec46bc7c
commit
272b19b259
|
@ -102,15 +102,24 @@
|
|||
mkdir v2.3
|
||||
```
|
||||
|
||||
8. Enter the following commands into your terminal to fetch and process the contracts:
|
||||
8. Copy custom content from the previous version--for example:
|
||||
|
||||
```sh
|
||||
# In your terminal, copy the `docs-v2/api-docs/openapi/content/v2.2` directory to a new directory:
|
||||
cp -r ./openapi/content/v2.2 ./openapi/content/v2.3
|
||||
|
||||
# TODO: We can probably automate this step now since we pass the version number.
|
||||
```
|
||||
|
||||
9. Enter the following commands into your terminal to fetch and process the contracts:
|
||||
|
||||
```sh
|
||||
# Fetch the contracts, apply customizations, and bundle.
|
||||
sh getswagger.sh oss
|
||||
```
|
||||
|
||||
9. To generate the HTML files for local testing, follow the instructions to [generate API docs locally](#generate-api-docs-locally).
|
||||
10. To commit your updated spec files, push your branch to `influxdata/docs-v2`, and create a PR against the `master` branch.
|
||||
10. To generate the HTML files for local testing, follow the instructions to [generate API docs locally](#generate-api-docs-locally).
|
||||
11. To commit your updated spec files, push your branch to `influxdata/docs-v2`, and create a PR against the `master` branch.
|
||||
|
||||
## Update API docs for OSS spec changes between releases
|
||||
|
||||
|
@ -134,7 +143,7 @@ Follow these steps to update OSS API docs between version releases--for example,
|
|||
```sh
|
||||
git cherry-pick [COMMIT_SHAs]
|
||||
git push -f origin docs-release/influxdb-oss
|
||||
|
||||
|
||||
4. Go into your `docs-v2` directory and create a branch for your changes--for example:
|
||||
|
||||
```sh
|
||||
|
@ -177,7 +186,7 @@ to generate version-specific (Cloud, OSS v2.1, OSS v2.0, etc.) API documentation
|
|||
Because the API documentation HTML is gitignored, you must manually generate it
|
||||
to view the API docs locally.
|
||||
|
||||
The `./generate.sh` script uses the Redoc CLI to generate Redocly HTML, Javascript,
|
||||
The `./generate.sh` script uses the Redoc CLI to generate Redocly HTML, Javascript,
|
||||
and CSS for each version of the InfluxDB spec.
|
||||
The script uses `npx` to download and execute the Redocly CLI.
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
title: InfluxDB OSS API Service
|
||||
version: 2.4.0
|
||||
description: |
|
||||
The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint.
|
||||
|
||||
This documentation is generated from the
|
||||
[InfluxDB OpenAPI specification](https://github.com/influxdata/openapi/blob/influxdb-oss-v2.4.0/contracts/ref/oss.yml).
|
|
@ -0,0 +1,9 @@
|
|||
title: InfluxDB OSS v1 compatibility API documentation
|
||||
version: 2.4.0 v1 compatibility
|
||||
description: |
|
||||
The InfluxDB 1.x compatibility /write and /query endpoints work with InfluxDB 1.x client libraries and third-party integrations like Grafana and others.
|
||||
|
||||
If you want to use the latest InfluxDB /api/v2 API instead, see the [InfluxDB v2 API documentation](/influxdb/v2.4/api/).
|
||||
|
||||
This documentation is generated from the
|
||||
[InfluxDB OpenAPI specification](https://github.com/influxdata/openapi/blob/influxdb-oss-v2.4.0/contracts/swaggerV1Compat.yml).
|
Loading…
Reference in New Issue