From f8112791a38526dcd533fc82a2cc3773234af626 Mon Sep 17 00:00:00 2001 From: George Gelashvili Date: Mon, 15 Jul 2024 17:40:08 -0700 Subject: [PATCH] Update CAPI v2 docs links to new subdomain --- api/cloudcontroller/ccv2/client.go | 2 +- api/cloudcontroller/ccv3/client.go | 2 +- cf/commands/curl.go | 2 +- command/v6/curl_command.go | 2 +- integration/v6/isolated/curl_command_test.go | 2 +- integration/v7/isolated/curl_command_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/cloudcontroller/ccv2/client.go b/api/cloudcontroller/ccv2/client.go index b008230ead..2e9eba6eb8 100644 --- a/api/cloudcontroller/ccv2/client.go +++ b/api/cloudcontroller/ccv2/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/api/cloudcontroller/ccv3/client.go b/api/cloudcontroller/ccv3/client.go index ffb7ef5d93..94cddc0ba1 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 783577c3aa..3c07f8df6d 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/v6/curl_command.go b/command/v6/curl_command.go index da613ba30b..06635792b9 100644 --- a/command/v6/curl_command.go +++ b/command/v6/curl_command.go @@ -14,7 +14,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 (CurlCommand) Setup(config command.Config, ui command.UI) error { diff --git a/integration/v6/isolated/curl_command_test.go b/integration/v6/isolated/curl_command_test.go index b2e406dffb..0d6d37f96c 100644 --- a/integration/v6/isolated/curl_command_test.go +++ b/integration/v6/isolated/curl_command_test.go @@ -26,7 +26,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`)) diff --git a/integration/v7/isolated/curl_command_test.go b/integration/v7/isolated/curl_command_test.go index cef5f0d4a5..0f921520e2 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`))