Skip to content

Commit

Permalink
Update CAPI v2 docs links to new subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotalgeorge committed Jul 16, 2024
1 parent 416fcb1 commit a7e6c43
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/cloudcontroller/ccv2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
2 changes: 1 addition & 1 deletion api/cloudcontroller/ccv3/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
2 changes: 1 addition & 1 deletion cf/commands/curl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'`,
Expand Down
2 changes: 1 addition & 1 deletion command/v6/curl_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion integration/v6/isolated/curl_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`))
Expand Down
2 changes: 1 addition & 1 deletion integration/v7/isolated/curl_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`))
Expand Down

0 comments on commit a7e6c43

Please sign in to comment.