docs-v2/api-docs/getswagger.sh

274 lines
8.1 KiB
Bash
Raw Normal View History

#!/bin/bash -e
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
# Use this script to retrieve the following InfluxData API specifications:
# - the latest, fully resolved openapi (OAS, OpenAPI Specification) contract files from the influxdata/openapi repo
#
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
# Specify a product to retrieve (cloud-serverless, cloud-dedicated, clustered, cloud, v2, v1-compatibility, all).
# Optionally specify:
# - an OSS version as the second argument or using the -o flag.
# The version specifies where to write the updated openapi.
# The default version is the latest OSS version directory in the api-docs directory.
# - a base URL using the -b flag.
# The baseURL specifies where to retrieve the openapi files from.
# The default baseUrl (used for InfluxDB Cloud) is the master branch of influxdata/openapi.
# The default baseUrl for OSS is the docs-release/influxdb-oss branch of influxdata/openapi.
# For local development, pass your openapi directory using the file:/// protocol.
# To use the existing ref.yml and prevent fetching any openapi files, use the -B flag.
# Syntax:
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
# sh ./getswagger.sh <product>
# sh ./getswagger.sh <product> -b <baseUrl>
# sh ./getswagger.sh -c <product> -o <version> -b <baseUrl>
# sh ./getswagger.sh -c <product> -o <version> -B
#
# Examples:
# sh ./getswagger.sh cloud-serverless
# sh ./getswagger.sh clustered -B
# sh ./getswagger.sh cloud
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
# sh ./getswagger.sh -c v2 -o v2.0 -b file:///Users/johnsmith/github/openapi
versionDirs=($(ls -d */))
latestOSS=${versionDirs[${#versionDirs[@]}-1]}
# Use openapi master branch as the default base URL.
baseUrl="https://raw.githubusercontent.com/influxdata/openapi/master"
# Use openapi docs-release/influxdb-oss branch for the OSS base URL.
baseUrlOSS="https://raw.githubusercontent.com/influxdata/openapi/docs-release/influxdb-oss"
ossVersion=${latestOSS%/}
verbose=""
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
product=""
function showHelp {
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
echo "Usage: ./getswagger.sh <product>"
echo " With optional arguments:"
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
echo " ./getswagger.sh <product> -b <baseUrl> -V"
echo " ./getswagger.sh cloud"
echo " ./getswagger.sh cloud-dedicated"
echo " ./getswagger.sh cloud-serverless"
echo " ./getswagger.sh oss -o <ossVersion> -V"
echo " ./getswagger.sh all -o <ossVersion>"
echo "Commands:"
echo "-b <URL> The base URL to fetch from."
echo " ex. ./getswagger.sh -b file:///Users/yourname/github/openapi"
echo " The default is the influxdata/openapi repo master branch."
echo "-B Use the existing ref.yml and prevent fetching any openapi files."
echo "-h Show this help."
echo "-o <semantic version> The OSS Version to fetch."
echo " ex. ./getswagger.sh oss -o v2.0"
echo " The default is the latest OSS version directory in the api-docs directory."
echo "-V Verbose. Print the processed arguments and verbose Curl output."
}
subcommand=$1
case "$subcommand" in
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
cloud-dedicated-v2|cloud-dedicated-management|cloud-serverless-v2|clustered-v2|cloud-v2|v2|v1-compat|all)
product=$1
shift
while getopts ":o:b:BhV" opt; do
case ${opt} in
h)
showHelp
exit 0
;;
V)
verbose="-v"
;;
B)
baseUrl=""
baseUrlOSS=""
;;
b)
baseUrl=$OPTARG
baseUrlOSS=$OPTARG
;;
o)
ossVersion=$OPTARG
;;
\?)
echo "Invalid option: $OPTARG" 1>&2
showHelp
exit 22
;;
:)
echo "Invalid option: $OPTARG requires an argument" 1>&2
showHelp
exit 22
;;
esac
done
shift $((OPTIND -1))
;;
esac
function showArgs {
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
echo "product: $product";
echo "baseUrl: $baseUrl";
echo "ossVersion: $ossVersion";
}
base update to 2.2 (#3744) * base update to 2.2 * draft release notes * draft InfluxDB 2.2 release notes * move release notes to new PR * update api for 2.2 * fix menu items * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * frontmatter fixes * Feat/oss v2 2 metrics (#3762) * feat: copy v2.1 metrics to v2.2. * feat: new storage metrics in v2.2 * feat: v2.2 storage metrics. * fix: revert 2.1 paths. * Update "Get started with tasks" (#3763) * update get started with tasks, closes influxdata/DAR#272 * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * update nats config options, update influxd-flags logic, related to #3766 (#3771) * updated token create API examples, closes influxdata/DAR#267 (#3773) * ported scalar values update to 2.2 * Chore/move openapicli process (#3801) * Internal measurements for monitoring Enterprise (#3698) * Add 1.21.4 (#3789) * Add 1.21.4 * Update content/telegraf/v1.21/about_the_project/release-notes-changelog.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Add apt and knot plugins Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * InfluxDB Enterprise 1.9.6 (#3650) * Document meta-node HTTP access logging (#3486) * Document `influxd-ctl backup -estimate` flag (#3484) Closes #3480 * add new option for SIGTERM (#3496) * Document `-meta-only-overwrite-force` restore flag for Enterprise (#3487) * Document `max-concurrent-deletes` option (#3697) * Update Enterprise cluster metrics: add `openConnections` (#3703) Closes #3653 * Remove marketplace offerings from Enterprise * Use bytes in certain Enterprise config examples (#3743) * InfluxDB Enterprise 1.9: remove default values from configuration headings (#3759) Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * fix: bad link. (#3793) * Update products.yml * Feat/3411 link to cloud limits (#3795) * feat: link from write error responses to related Cloud limits topics. * feat: link Troubleshooting writes to Cloud limits. * fix: grammar. * Update content/influxdb/cloud/write-data/troubleshoot.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * First updates for the new brand (#3796) * first pass with new branding, logos, fonts * updated table font sizes * removed unnecessary file * Update assets/styles/layouts/_sidebar.scss Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * a few last style updates Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * chore: move openapi-cli postprocessing to the getSwagger step. * chore: convert the content generators to functions so they're not executed on import (which broke the linter). Move the generators into the decorators and remove options args to simplify. Update and simplify the README. Update the oss v2.1 contract. * README Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * port menu url fix from master to 2.2 * Feat/oss 2 2 config (#3774) * wip: add new server-config CLI command and /api/v2/config path. Fix Operator token doc. (#3523) * feat: document OSS-only and . Deprecate assets-path: "" (closes #3523) * chore: add toc * Replace run-time with runtime. (#3774) * Update content/influxdb/v2.2/reference/cli/influx/server-config/_index.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * formatted all flux examples in influxdb 2.2 * Fix/set tag groups (#3823) * fix: replacement of Info: in contracts. fix: add missing const declarations. fix: add a decorator to remove redundant servers with empty URLs -- all servers should be root now since paths are explicit. * fix: invalid mix of tags as strings and objects in root.tags. Convert all tags to objects with a default description. * fix: use tag objects instead of mixing strings and objects in x-tagGroups -- fixes validation errors. * port data retention and deletion updates to 2.2 * ported updated current version shortcode to 2.2 * Feat/3414 v2.2 debug pprof (#3844) * feat: update API reference for OSS v2.2. Adds /debug/pprof. * feat: add v2.2 runtime reference. * fix: update URLs. * port hardening-enabled config info, closes #3867, closes #3866 (#3873) * Fix/3855 oss2.2 (#3857) * fix: update npm example in v2.2. (#3855) * fix: cardinality for ossv2.2 (#3850) * updating placeholders in 2.2 * Document `influx remote` and `influx replication` (#3469) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * ported migration docs into 2.2 * updated edge.js * porting various minor changes into 2.2 * InfluxDB 2.2 release notes (#3745) * draft 2.2 release notes * remove flux lines; regroup other items * update link to Flux RNs * update release notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * fix frontmatter * fix link; update version * edit * revert for review clarity * Update influxdb.md * note about technical preview & feature overview * edit from Jason * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Updates per Tim H and Sam feedback * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * changes made from feedback * changed technical preview notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * add link to OSS metrics page * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Add security section to influxdb/v2.2/reference/release-notes/influxdb.md (#3898) * edits from Sam * edit from sam * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.m Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * edits * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * edit from Sam * edit from Sam * edits from Tim Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jamie Strandboge <jamie@strandboge.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * Recover credentials (#3915) * draft recover creds * add relate * add new option to index * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md * edit from SamA; add note * sync headers * add overview bullets; update links * context from SamA * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * update couple stray versions * add technical preview to the glossary * update release date * fix link * Add documentation for replications max-age (#3936) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> Co-authored-by: Sunbrye Ly <sunbryely@Sunbryes-MacBook-Pro.local> Co-authored-by: sunbryely-influxdata <101659702+sunbryely-influxdata@users.noreply.github.com> Co-authored-by: Dane Strandboge <dane@strandboge.com>
2022-04-06 22:07:21 +00:00
function postProcess() {
# Use npx to install and run the specified version of openapi-cli.
# npm_config_yes=true npx overrides the prompt
# and (vs. npx --yes) is compatible with npm@6 and npm@7.
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
specPath="$1"
configPath="$2"
api="$3"
openapiCLI=" @redocly/cli"
currentPath=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
base update to 2.2 (#3744) * base update to 2.2 * draft release notes * draft InfluxDB 2.2 release notes * move release notes to new PR * update api for 2.2 * fix menu items * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * frontmatter fixes * Feat/oss v2 2 metrics (#3762) * feat: copy v2.1 metrics to v2.2. * feat: new storage metrics in v2.2 * feat: v2.2 storage metrics. * fix: revert 2.1 paths. * Update "Get started with tasks" (#3763) * update get started with tasks, closes influxdata/DAR#272 * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * update nats config options, update influxd-flags logic, related to #3766 (#3771) * updated token create API examples, closes influxdata/DAR#267 (#3773) * ported scalar values update to 2.2 * Chore/move openapicli process (#3801) * Internal measurements for monitoring Enterprise (#3698) * Add 1.21.4 (#3789) * Add 1.21.4 * Update content/telegraf/v1.21/about_the_project/release-notes-changelog.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Add apt and knot plugins Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * InfluxDB Enterprise 1.9.6 (#3650) * Document meta-node HTTP access logging (#3486) * Document `influxd-ctl backup -estimate` flag (#3484) Closes #3480 * add new option for SIGTERM (#3496) * Document `-meta-only-overwrite-force` restore flag for Enterprise (#3487) * Document `max-concurrent-deletes` option (#3697) * Update Enterprise cluster metrics: add `openConnections` (#3703) Closes #3653 * Remove marketplace offerings from Enterprise * Use bytes in certain Enterprise config examples (#3743) * InfluxDB Enterprise 1.9: remove default values from configuration headings (#3759) Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * fix: bad link. (#3793) * Update products.yml * Feat/3411 link to cloud limits (#3795) * feat: link from write error responses to related Cloud limits topics. * feat: link Troubleshooting writes to Cloud limits. * fix: grammar. * Update content/influxdb/cloud/write-data/troubleshoot.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * First updates for the new brand (#3796) * first pass with new branding, logos, fonts * updated table font sizes * removed unnecessary file * Update assets/styles/layouts/_sidebar.scss Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * a few last style updates Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * chore: move openapi-cli postprocessing to the getSwagger step. * chore: convert the content generators to functions so they're not executed on import (which broke the linter). Move the generators into the decorators and remove options args to simplify. Update and simplify the README. Update the oss v2.1 contract. * README Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * port menu url fix from master to 2.2 * Feat/oss 2 2 config (#3774) * wip: add new server-config CLI command and /api/v2/config path. Fix Operator token doc. (#3523) * feat: document OSS-only and . Deprecate assets-path: "" (closes #3523) * chore: add toc * Replace run-time with runtime. (#3774) * Update content/influxdb/v2.2/reference/cli/influx/server-config/_index.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * formatted all flux examples in influxdb 2.2 * Fix/set tag groups (#3823) * fix: replacement of Info: in contracts. fix: add missing const declarations. fix: add a decorator to remove redundant servers with empty URLs -- all servers should be root now since paths are explicit. * fix: invalid mix of tags as strings and objects in root.tags. Convert all tags to objects with a default description. * fix: use tag objects instead of mixing strings and objects in x-tagGroups -- fixes validation errors. * port data retention and deletion updates to 2.2 * ported updated current version shortcode to 2.2 * Feat/3414 v2.2 debug pprof (#3844) * feat: update API reference for OSS v2.2. Adds /debug/pprof. * feat: add v2.2 runtime reference. * fix: update URLs. * port hardening-enabled config info, closes #3867, closes #3866 (#3873) * Fix/3855 oss2.2 (#3857) * fix: update npm example in v2.2. (#3855) * fix: cardinality for ossv2.2 (#3850) * updating placeholders in 2.2 * Document `influx remote` and `influx replication` (#3469) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * ported migration docs into 2.2 * updated edge.js * porting various minor changes into 2.2 * InfluxDB 2.2 release notes (#3745) * draft 2.2 release notes * remove flux lines; regroup other items * update link to Flux RNs * update release notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * fix frontmatter * fix link; update version * edit * revert for review clarity * Update influxdb.md * note about technical preview & feature overview * edit from Jason * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Updates per Tim H and Sam feedback * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * changes made from feedback * changed technical preview notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * add link to OSS metrics page * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Add security section to influxdb/v2.2/reference/release-notes/influxdb.md (#3898) * edits from Sam * edit from sam * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.m Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * edits * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * edit from Sam * edit from Sam * edits from Tim Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jamie Strandboge <jamie@strandboge.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * Recover credentials (#3915) * draft recover creds * add relate * add new option to index * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md * edit from SamA; add note * sync headers * add overview bullets; update links * context from SamA * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * update couple stray versions * add technical preview to the glossary * update release date * fix link * Add documentation for replications max-age (#3936) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> Co-authored-by: Sunbrye Ly <sunbryely@Sunbryes-MacBook-Pro.local> Co-authored-by: sunbryely-influxdata <101659702+sunbryely-influxdata@users.noreply.github.com> Co-authored-by: Dane Strandboge <dane@strandboge.com>
2022-04-06 22:07:21 +00:00
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
# TODO: Move some of this into the plugin:
base update to 2.2 (#3744) * base update to 2.2 * draft release notes * draft InfluxDB 2.2 release notes * move release notes to new PR * update api for 2.2 * fix menu items * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * frontmatter fixes * Feat/oss v2 2 metrics (#3762) * feat: copy v2.1 metrics to v2.2. * feat: new storage metrics in v2.2 * feat: v2.2 storage metrics. * fix: revert 2.1 paths. * Update "Get started with tasks" (#3763) * update get started with tasks, closes influxdata/DAR#272 * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * update nats config options, update influxd-flags logic, related to #3766 (#3771) * updated token create API examples, closes influxdata/DAR#267 (#3773) * ported scalar values update to 2.2 * Chore/move openapicli process (#3801) * Internal measurements for monitoring Enterprise (#3698) * Add 1.21.4 (#3789) * Add 1.21.4 * Update content/telegraf/v1.21/about_the_project/release-notes-changelog.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Add apt and knot plugins Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * InfluxDB Enterprise 1.9.6 (#3650) * Document meta-node HTTP access logging (#3486) * Document `influxd-ctl backup -estimate` flag (#3484) Closes #3480 * add new option for SIGTERM (#3496) * Document `-meta-only-overwrite-force` restore flag for Enterprise (#3487) * Document `max-concurrent-deletes` option (#3697) * Update Enterprise cluster metrics: add `openConnections` (#3703) Closes #3653 * Remove marketplace offerings from Enterprise * Use bytes in certain Enterprise config examples (#3743) * InfluxDB Enterprise 1.9: remove default values from configuration headings (#3759) Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * fix: bad link. (#3793) * Update products.yml * Feat/3411 link to cloud limits (#3795) * feat: link from write error responses to related Cloud limits topics. * feat: link Troubleshooting writes to Cloud limits. * fix: grammar. * Update content/influxdb/cloud/write-data/troubleshoot.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * First updates for the new brand (#3796) * first pass with new branding, logos, fonts * updated table font sizes * removed unnecessary file * Update assets/styles/layouts/_sidebar.scss Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * a few last style updates Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * chore: move openapi-cli postprocessing to the getSwagger step. * chore: convert the content generators to functions so they're not executed on import (which broke the linter). Move the generators into the decorators and remove options args to simplify. Update and simplify the README. Update the oss v2.1 contract. * README Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * port menu url fix from master to 2.2 * Feat/oss 2 2 config (#3774) * wip: add new server-config CLI command and /api/v2/config path. Fix Operator token doc. (#3523) * feat: document OSS-only and . Deprecate assets-path: "" (closes #3523) * chore: add toc * Replace run-time with runtime. (#3774) * Update content/influxdb/v2.2/reference/cli/influx/server-config/_index.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * formatted all flux examples in influxdb 2.2 * Fix/set tag groups (#3823) * fix: replacement of Info: in contracts. fix: add missing const declarations. fix: add a decorator to remove redundant servers with empty URLs -- all servers should be root now since paths are explicit. * fix: invalid mix of tags as strings and objects in root.tags. Convert all tags to objects with a default description. * fix: use tag objects instead of mixing strings and objects in x-tagGroups -- fixes validation errors. * port data retention and deletion updates to 2.2 * ported updated current version shortcode to 2.2 * Feat/3414 v2.2 debug pprof (#3844) * feat: update API reference for OSS v2.2. Adds /debug/pprof. * feat: add v2.2 runtime reference. * fix: update URLs. * port hardening-enabled config info, closes #3867, closes #3866 (#3873) * Fix/3855 oss2.2 (#3857) * fix: update npm example in v2.2. (#3855) * fix: cardinality for ossv2.2 (#3850) * updating placeholders in 2.2 * Document `influx remote` and `influx replication` (#3469) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * ported migration docs into 2.2 * updated edge.js * porting various minor changes into 2.2 * InfluxDB 2.2 release notes (#3745) * draft 2.2 release notes * remove flux lines; regroup other items * update link to Flux RNs * update release notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * fix frontmatter * fix link; update version * edit * revert for review clarity * Update influxdb.md * note about technical preview & feature overview * edit from Jason * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Updates per Tim H and Sam feedback * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * changes made from feedback * changed technical preview notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * add link to OSS metrics page * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Add security section to influxdb/v2.2/reference/release-notes/influxdb.md (#3898) * edits from Sam * edit from sam * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.m Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * edits * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * edit from Sam * edit from Sam * edits from Tim Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jamie Strandboge <jamie@strandboge.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * Recover credentials (#3915) * draft recover creds * add relate * add new option to index * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md * edit from SamA; add note * sync headers * add overview bullets; update links * context from SamA * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * update couple stray versions * add technical preview to the glossary * update release date * fix link * Add documentation for replications max-age (#3936) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> Co-authored-by: Sunbrye Ly <sunbryely@Sunbryes-MacBook-Pro.local> Co-authored-by: sunbryely-influxdata <101659702+sunbryely-influxdata@users.noreply.github.com> Co-authored-by: Dane Strandboge <dane@strandboge.com>
2022-04-06 22:07:21 +00:00
# Use Redoc's openapi-cli to regenerate the spec with custom decorations.
# If you want to lint the source contract (before bundling),
# pass `--lint` to the `bundle` command.
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
# If you set environment variables (for example, INFLUXDB_PRODUCT=)
# preceding the command name, you can then access the variables
# in the NodeJS process.env global object.
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
# INFLUXDB_API_VERSION=$apiVersion \
npx --version
INFLUXDB_PRODUCT=$(dirname "$configPath") \
INFLUXDB_API_NAME=$(echo "$api" | sed 's/@.*//g;') \
API_DOCS_ROOT_PATH=$currentPath \
npm_config_yes=true \
npx $openapiCLI bundle $specPath \
-o $specPath \
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
--config=$configPath
base update to 2.2 (#3744) * base update to 2.2 * draft release notes * draft InfluxDB 2.2 release notes * move release notes to new PR * update api for 2.2 * fix menu items * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * frontmatter fixes * Feat/oss v2 2 metrics (#3762) * feat: copy v2.1 metrics to v2.2. * feat: new storage metrics in v2.2 * feat: v2.2 storage metrics. * fix: revert 2.1 paths. * Update "Get started with tasks" (#3763) * update get started with tasks, closes influxdata/DAR#272 * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * update nats config options, update influxd-flags logic, related to #3766 (#3771) * updated token create API examples, closes influxdata/DAR#267 (#3773) * ported scalar values update to 2.2 * Chore/move openapicli process (#3801) * Internal measurements for monitoring Enterprise (#3698) * Add 1.21.4 (#3789) * Add 1.21.4 * Update content/telegraf/v1.21/about_the_project/release-notes-changelog.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Add apt and knot plugins Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * InfluxDB Enterprise 1.9.6 (#3650) * Document meta-node HTTP access logging (#3486) * Document `influxd-ctl backup -estimate` flag (#3484) Closes #3480 * add new option for SIGTERM (#3496) * Document `-meta-only-overwrite-force` restore flag for Enterprise (#3487) * Document `max-concurrent-deletes` option (#3697) * Update Enterprise cluster metrics: add `openConnections` (#3703) Closes #3653 * Remove marketplace offerings from Enterprise * Use bytes in certain Enterprise config examples (#3743) * InfluxDB Enterprise 1.9: remove default values from configuration headings (#3759) Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * fix: bad link. (#3793) * Update products.yml * Feat/3411 link to cloud limits (#3795) * feat: link from write error responses to related Cloud limits topics. * feat: link Troubleshooting writes to Cloud limits. * fix: grammar. * Update content/influxdb/cloud/write-data/troubleshoot.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * First updates for the new brand (#3796) * first pass with new branding, logos, fonts * updated table font sizes * removed unnecessary file * Update assets/styles/layouts/_sidebar.scss Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * a few last style updates Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * chore: move openapi-cli postprocessing to the getSwagger step. * chore: convert the content generators to functions so they're not executed on import (which broke the linter). Move the generators into the decorators and remove options args to simplify. Update and simplify the README. Update the oss v2.1 contract. * README Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * port menu url fix from master to 2.2 * Feat/oss 2 2 config (#3774) * wip: add new server-config CLI command and /api/v2/config path. Fix Operator token doc. (#3523) * feat: document OSS-only and . Deprecate assets-path: "" (closes #3523) * chore: add toc * Replace run-time with runtime. (#3774) * Update content/influxdb/v2.2/reference/cli/influx/server-config/_index.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * formatted all flux examples in influxdb 2.2 * Fix/set tag groups (#3823) * fix: replacement of Info: in contracts. fix: add missing const declarations. fix: add a decorator to remove redundant servers with empty URLs -- all servers should be root now since paths are explicit. * fix: invalid mix of tags as strings and objects in root.tags. Convert all tags to objects with a default description. * fix: use tag objects instead of mixing strings and objects in x-tagGroups -- fixes validation errors. * port data retention and deletion updates to 2.2 * ported updated current version shortcode to 2.2 * Feat/3414 v2.2 debug pprof (#3844) * feat: update API reference for OSS v2.2. Adds /debug/pprof. * feat: add v2.2 runtime reference. * fix: update URLs. * port hardening-enabled config info, closes #3867, closes #3866 (#3873) * Fix/3855 oss2.2 (#3857) * fix: update npm example in v2.2. (#3855) * fix: cardinality for ossv2.2 (#3850) * updating placeholders in 2.2 * Document `influx remote` and `influx replication` (#3469) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * ported migration docs into 2.2 * updated edge.js * porting various minor changes into 2.2 * InfluxDB 2.2 release notes (#3745) * draft 2.2 release notes * remove flux lines; regroup other items * update link to Flux RNs * update release notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * fix frontmatter * fix link; update version * edit * revert for review clarity * Update influxdb.md * note about technical preview & feature overview * edit from Jason * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Updates per Tim H and Sam feedback * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * changes made from feedback * changed technical preview notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * add link to OSS metrics page * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Add security section to influxdb/v2.2/reference/release-notes/influxdb.md (#3898) * edits from Sam * edit from sam * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.m Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * edits * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * edit from Sam * edit from Sam * edits from Tim Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jamie Strandboge <jamie@strandboge.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * Recover credentials (#3915) * draft recover creds * add relate * add new option to index * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md * edit from SamA; add note * sync headers * add overview bullets; update links * context from SamA * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * update couple stray versions * add technical preview to the glossary * update release date * fix link * Add documentation for replications max-age (#3936) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> Co-authored-by: Sunbrye Ly <sunbryely@Sunbryes-MacBook-Pro.local> Co-authored-by: sunbryely-influxdata <101659702+sunbryely-influxdata@users.noreply.github.com> Co-authored-by: Dane Strandboge <dane@strandboge.com>
2022-04-06 22:07:21 +00:00
}
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
function updateCloudV2 {
outFile="cloud/v2/ref.yml"
if [[ -z "$baseUrl" ]];
then
echo "Using existing $outFile"
else
curl $UPDATE_OPTIONS ${baseUrl}/contracts/ref/cloud.yml -o $outFile
fi
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
postProcess $outFile 'cloud/.config.yml' v2@2
}
function updateCloudDedicatedManagement {
outFile="cloud-dedicated/management/openapi.yml"
if [[ -z "$baseUrl" ]];
then
echo "Using existing $outFile"
else
curl $UPDATE_OPTIONS https://raw.githubusercontent.com/influxdata/granite/3117fb47d5e56afaadcebc226ff4b25785d95b5a/openapi.yaml -o $outFile
fi
postProcess $outFile 'cloud-dedicated/.config.yml' management@0
}
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
function updateCloudDedicatedV2 {
outFile="cloud-dedicated/v2/ref.yml"
if [[ -z "$baseUrl" ]];
then
echo "Using existing $outFile"
else
curl $UPDATE_OPTIONS ${baseUrl}/contracts/ref/cloud.yml -o $outFile
fi
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
postProcess $outFile 'cloud-dedicated/.config.yml' v2@2
}
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
function updateClusteredV2 {
outFile="clustered/v2/ref.yml"
if [[ -z "$baseUrl" ]];
then
echo "Using existing $outFile"
else
curl $UPDATE_OPTIONS ${baseUrl}/contracts/ref/cloud.yml -o $outFile
fi
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
postProcess $outFile 'clustered/.config.yml' v2@2
}
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
function updateCloudServerlessV2 {
outFile="cloud-serverless/v2/ref.yml"
if [[ -z "$baseUrl" ]];
then
echo "Using existing $outFile"
else
curl $UPDATE_OPTIONS ${baseUrl}/contracts/ref/cloud.yml -o $outFile
fi
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
postProcess $outFile 'cloud-serverless/.config.yml' v2@2
}
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
function updateOSSV2 {
outFile="v2/ref.yml"
if [[ -z "$baseUrlOSS" ]];
then
echo "Using existing $outFile"
else
curl $UPDATE_OPTIONS ${baseUrlOSS}/contracts/ref/oss.yml -o $outFile
fi
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
postProcess $outFile 'v2/.config.yml' '@2'
}
function updateV1Compat {
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
outFile="cloud/v1-compatibility/swaggerV1Compat.yml"
if [[ -z "$baseUrl" ]];
then
echo "Using existing $outFile"
else
curl $UPDATE_OPTIONS ${baseUrl}/contracts/swaggerV1Compat.yml -o $outFile
fi
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
postProcess $outFile 'cloud/.config.yml' 'v1-compatibility'
outFile="v2/v1-compatibility/swaggerV1Compat.yml"
cp cloud/v1-compatibility/swaggerV1Compat.yml $outFile
postProcess $outFile 'v2/.config.yml' 'v1-compatibility'
base update to 2.2 (#3744) * base update to 2.2 * draft release notes * draft InfluxDB 2.2 release notes * move release notes to new PR * update api for 2.2 * fix menu items * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update data/products.yml Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * frontmatter fixes * Feat/oss v2 2 metrics (#3762) * feat: copy v2.1 metrics to v2.2. * feat: new storage metrics in v2.2 * feat: v2.2 storage metrics. * fix: revert 2.1 paths. * Update "Get started with tasks" (#3763) * update get started with tasks, closes influxdata/DAR#272 * Apply suggestions from code review Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * update nats config options, update influxd-flags logic, related to #3766 (#3771) * updated token create API examples, closes influxdata/DAR#267 (#3773) * ported scalar values update to 2.2 * Chore/move openapicli process (#3801) * Internal measurements for monitoring Enterprise (#3698) * Add 1.21.4 (#3789) * Add 1.21.4 * Update content/telegraf/v1.21/about_the_project/release-notes-changelog.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Add apt and knot plugins Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * InfluxDB Enterprise 1.9.6 (#3650) * Document meta-node HTTP access logging (#3486) * Document `influxd-ctl backup -estimate` flag (#3484) Closes #3480 * add new option for SIGTERM (#3496) * Document `-meta-only-overwrite-force` restore flag for Enterprise (#3487) * Document `max-concurrent-deletes` option (#3697) * Update Enterprise cluster metrics: add `openConnections` (#3703) Closes #3653 * Remove marketplace offerings from Enterprise * Use bytes in certain Enterprise config examples (#3743) * InfluxDB Enterprise 1.9: remove default values from configuration headings (#3759) Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * fix: bad link. (#3793) * Update products.yml * Feat/3411 link to cloud limits (#3795) * feat: link from write error responses to related Cloud limits topics. * feat: link Troubleshooting writes to Cloud limits. * fix: grammar. * Update content/influxdb/cloud/write-data/troubleshoot.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * First updates for the new brand (#3796) * first pass with new branding, logos, fonts * updated table font sizes * removed unnecessary file * Update assets/styles/layouts/_sidebar.scss Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * a few last style updates Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * chore: move openapi-cli postprocessing to the getSwagger step. * chore: convert the content generators to functions so they're not executed on import (which broke the linter). Move the generators into the decorators and remove options args to simplify. Update and simplify the README. Update the oss v2.1 contract. * README Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> * port menu url fix from master to 2.2 * Feat/oss 2 2 config (#3774) * wip: add new server-config CLI command and /api/v2/config path. Fix Operator token doc. (#3523) * feat: document OSS-only and . Deprecate assets-path: "" (closes #3523) * chore: add toc * Replace run-time with runtime. (#3774) * Update content/influxdb/v2.2/reference/cli/influx/server-config/_index.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * formatted all flux examples in influxdb 2.2 * Fix/set tag groups (#3823) * fix: replacement of Info: in contracts. fix: add missing const declarations. fix: add a decorator to remove redundant servers with empty URLs -- all servers should be root now since paths are explicit. * fix: invalid mix of tags as strings and objects in root.tags. Convert all tags to objects with a default description. * fix: use tag objects instead of mixing strings and objects in x-tagGroups -- fixes validation errors. * port data retention and deletion updates to 2.2 * ported updated current version shortcode to 2.2 * Feat/3414 v2.2 debug pprof (#3844) * feat: update API reference for OSS v2.2. Adds /debug/pprof. * feat: add v2.2 runtime reference. * fix: update URLs. * port hardening-enabled config info, closes #3867, closes #3866 (#3873) * Fix/3855 oss2.2 (#3857) * fix: update npm example in v2.2. (#3855) * fix: cardinality for ossv2.2 (#3850) * updating placeholders in 2.2 * Document `influx remote` and `influx replication` (#3469) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * ported migration docs into 2.2 * updated edge.js * porting various minor changes into 2.2 * InfluxDB 2.2 release notes (#3745) * draft 2.2 release notes * remove flux lines; regroup other items * update link to Flux RNs * update release notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * fix frontmatter * fix link; update version * edit * revert for review clarity * Update influxdb.md * note about technical preview & feature overview * edit from Jason * Update content/influxdb/v2.2/reference/release-notes/influxdb.md * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Updates per Tim H and Sam feedback * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * changes made from feedback * changed technical preview notes * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com> * add link to OSS metrics page * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> * Add security section to influxdb/v2.2/reference/release-notes/influxdb.md (#3898) * edits from Sam * edit from sam * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.m Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> * edits * Update content/influxdb/v2.2/reference/release-notes/influxdb.md Co-authored-by: Sam Dillard <sam@influxdata.com> * edit from Sam * edit from Sam * edits from Tim Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: Jamie Strandboge <jamie@strandboge.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * Recover credentials (#3915) * draft recover creds * add relate * add new option to index * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md * edit from SamA; add note * sync headers * add overview bullets; update links * context from SamA * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/v2.2/users/recover-credentials.md Co-authored-by: Sam Dillard <sam@influxdata.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Sam Dillard <sam@influxdata.com> * update couple stray versions * add technical preview to the glossary * update release date * fix link * Add documentation for replications max-age (#3936) Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com> Co-authored-by: Jason Stirnaman <jstirnaman@influxdata.com> Co-authored-by: noramullen1 <42354779+noramullen1@users.noreply.github.com> Co-authored-by: Sam Arnold <sarnold@influxdata.com> Co-authored-by: Sunbrye Ly <sunbryely@Sunbryes-MacBook-Pro.local> Co-authored-by: sunbryely-influxdata <101659702+sunbryely-influxdata@users.noreply.github.com> Co-authored-by: Dane Strandboge <dane@strandboge.com>
2022-04-06 22:07:21 +00:00
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
outFile="cloud-dedicated/v1-compatibility/swaggerV1Compat.yml"
postProcess $outFile 'cloud-dedicated/.config.yml' 'v1-compatibility'
outFile="cloud-serverless/v1-compatibility/swaggerV1Compat.yml"
postProcess $outFile 'cloud-serverless/.config.yml' 'v1-compatibility'
outFile="clustered/v1-compatibility/swaggerV1Compat.yml"
postProcess $outFile 'clustered/.config.yml' 'v1-compatibility'
}
UPDATE_OPTIONS="--fail"
if [ ! -z ${verbose} ];
then
UPDATE_OPTIONS="-v $UPDATE_OPTIONS"
showArgs
echo ""
fi
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
if [ "$product" = "cloud-v2" ];
then
updateCloudV2
elif [ "$product" = "cloud-dedicated-v2" ];
then
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
updateCloudDedicatedV2
elif [ "$product" = "cloud-dedicated-management" ];
then
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
updateCloudDedicatedManagement
elif [ "$product" = "cloud-serverless-v2" ];
then
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
updateCloudServerlessV2
elif [ "$product" = "clustered-v2" ];
then
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
updateClusteredV2
elif [ "$product" = "v2" ];
then
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
updateOSSV2
elif [ "$product" = "v1-compat" ];
then
updateV1Compat
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
elif [ "$product" = "all" ];
then
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
updateCloudV2
updateCloudDedicatedV2
updateCloudDedicatedManagement
updateCloudServerlessV2
updateClusteredV2
updateOSSV2
updateV1Compat
else
feat(v3): Restructure API docs for v3 (#5408) * v3 management API Fixes #5397 - Adds an API reference doc for the HTTP management API openapi spec (https://github.com/influxdata/granite/blob/main/openapi.yaml) (Cloud Dedicated only) - Doesn't fetch changes for any specs except for the Management spec. - Adds summaries and fixes descriptions in spec overrides. - Removes versions in spec overrides. - Adds configuration for generating API reference docs, Hugo frontmatter, setting the default API (for the [product]/api/ URL) - Restructures `/api-docs` to better allow for multiple APIs (and customizations) per product - Adds `[product]/api/v2/` docs URL for cloud products (currently set as the "default" API, `[product]/api`) - Refactors `generate-api-docs` to remove specific conditions and use the new directory structure. - Redocly update fixes some theme formatting issues - Tested the following URLs: - http://localhost:1313/influxdb/v2/api/ - http://localhost:1313/influxdb/v2/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud/api/ - http://localhost:1313/influxdb/cloud/api/v2/ - http://localhost:1313/influxdb/cloud-dedicated/api/ - http://localhost:1313/influxdb/cloud-dedicated/api/v2/ - http://localhost:1313/influxdb/cloud/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-dedicated/api/v1-compatibility/ - http://localhost:1313/influxdb/cloud-serverless/ - http://localhost:1313/influxdb/cloud-serverless/api/v2/ - http://localhost:1313/influxdb/cloud-serverless/api/v1-compatibility/ - http://localhost:1313/influxdb/clustered/api/ - http://localhost:1313/influxdb/clustered/api/v2/ - http://localhost:1313/influxdb/clustered/api/v1-compatibility/ * fix(v3): Remove Management API from menu * Update api-docs/cloud-dedicated/v2/content/info.yml * show management api in nav, update nav names --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <scott@influxdata.com>
2024-04-09 23:02:12 +00:00
echo "Provide a product argument: cloud-v2, cloud-serverless-v2, cloud-dedicated-v2, clustered-v2, v2, v1-compat, or all."
showHelp
fi