From 75e9c7d4d9d890156b40b80d2494c7d0d87fc31b Mon Sep 17 00:00:00 2001 From: George Gelashvili Date: Mon, 15 Jul 2024 17:39:00 -0700 Subject: [PATCH] Update CAPI v2 docs links to new subdomain --- README.md | 2 +- api/cloudcontroller/ccv3/client.go | 2 +- cf/commands/curl.go | 2 +- command/v7/curl_command.go | 2 +- integration/v7/isolated/curl_command_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8d4d7874481..da6d0da1dc3 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Once installed, you can log in and push an app. There are now three supported versions of the cf CLI: 1. The v8 cf CLI is backed by the [v3 CC API](http://v3-apidocs.cloudfoundry.org/version/3.85.0/) (with the exception of plugins). See [our v8 documentation](https://docs.cloudfoundry.org/cf-cli/v8.html) for more information. 1. The v7 cf CLI is backed by the [v3 CC API](http://v3-apidocs.cloudfoundry.org/version/3.85.0/) (with the exception of plugins). See [our v7 documentation](https://docs.cloudfoundry.org/cf-cli/v7.html) for more information. -1. The v6 cf CLI is backed by the [v2 CC API](https://apidocs.cloudfoundry.org/13.5.0/) See [our v6 documentation](https://docs.cloudfoundry.org/cf-cli) for more information. +1. The v6 cf CLI is backed by the [v2 CC API](https://v2-apidocs.cloudfoundry.org/) See [our v6 documentation](https://docs.cloudfoundry.org/cf-cli) for more information. View our [CLI v6 & v7 & v8 Versioning and Support Policy](https://github.com/cloudfoundry/cli/wiki/Versioning-and-Support-Policy) documentation. diff --git a/api/cloudcontroller/ccv3/client.go b/api/cloudcontroller/ccv3/client.go index ffb7ef5d933..94cddc0ba18 100644 --- a/api/cloudcontroller/ccv3/client.go +++ b/api/cloudcontroller/ccv3/client.go @@ -7,7 +7,7 @@ // may include features and endpoints of later API versions. // // For more information on the Cloud Controller API see -// https://apidocs.cloudfoundry.org/ +// https://v2-apidocs.cloudfoundry.org/ // // # Method Naming Conventions // diff --git a/cf/commands/curl.go b/cf/commands/curl.go index 783577c3aa1..3c07f8df6d6 100644 --- a/cf/commands/curl.go +++ b/cf/commands/curl.go @@ -54,7 +54,7 @@ func (cmd *Curl) MetaData() commandregistry.CommandMetadata { will be set to application/json. You may override headers with -H and the request method with -X. - For API documentation, please visit http://apidocs.cloudfoundry.org.`), + For API documentation, please visit http://v2-apidocs.cloudfoundry.org.`), }, Examples: []string{ `CF_NAME curl "/v2/apps" -X GET -H "Content-Type: application/x-www-form-urlencoded" -d 'q=name:myapp'`, diff --git a/command/v7/curl_command.go b/command/v7/curl_command.go index 764c5075254..4f2774d25bb 100644 --- a/command/v7/curl_command.go +++ b/command/v7/curl_command.go @@ -18,7 +18,7 @@ type CurlCommand struct { FailOnHTTPError bool `short:"f" long:"fail" description:"Server errors return exit code 22"` IncludeResponseHeaders bool `short:"i" description:"Include response headers in the output"` OutputFile flag.Path `long:"output" description:"Write curl body to FILE instead of stdout"` - usage interface{} `usage:"CF_NAME curl PATH [-iv] [-X METHOD] [-H HEADER]... [-d DATA] [--output FILE]\n\n By default 'CF_NAME curl' will perform a GET to the specified PATH. If data\n is provided via -d, a POST will be performed instead, and the Content-Type\n will be set to application/json. You may override headers with -H and the\n request method with -X.\n\n For API documentation, please visit http://apidocs.cloudfoundry.org.\n\nEXAMPLES:\n CF_NAME curl \"/v2/apps\" -X GET -H \"Content-Type: application/x-www-form-urlencoded\" -d 'q=name:myapp'\n CF_NAME curl \"/v2/apps\" -d @/path/to/file"` + usage interface{} `usage:"CF_NAME curl PATH [-iv] [-X METHOD] [-H HEADER]... [-d DATA] [--output FILE]\n\n By default 'CF_NAME curl' will perform a GET to the specified PATH. If data\n is provided via -d, a POST will be performed instead, and the Content-Type\n will be set to application/json. You may override headers with -H and the\n request method with -X.\n\n For API documentation, please visit http://v2-apidocs.cloudfoundry.org.\n\nEXAMPLES:\n CF_NAME curl \"/v2/apps\" -X GET -H \"Content-Type: application/x-www-form-urlencoded\" -d 'q=name:myapp'\n CF_NAME curl \"/v2/apps\" -d @/path/to/file"` } func (cmd CurlCommand) Execute(args []string) error { diff --git a/integration/v7/isolated/curl_command_test.go b/integration/v7/isolated/curl_command_test.go index c65a4b864d7..45104d93a34 100644 --- a/integration/v7/isolated/curl_command_test.go +++ b/integration/v7/isolated/curl_command_test.go @@ -27,7 +27,7 @@ var _ = Describe("curl command", func() { Eventually(session).Should(Say(`\s+is provided via -d, a POST will be performed instead, and the Content-Type\n`)) Eventually(session).Should(Say(`\s+will be set to application/json. You may override headers with -H and the\n`)) Eventually(session).Should(Say(`\s+request method with -X.\n`)) - Eventually(session).Should(Say(`\s+For API documentation, please visit http://apidocs.cloudfoundry.org.\n`)) + Eventually(session).Should(Say(`\s+For API documentation, please visit http://v2-apidocs.cloudfoundry.org.\n`)) Eventually(session).Should(Say(`\n`)) Eventually(session).Should(Say(`EXAMPLES:\n`))