From 48bf280d474cf7c1b5dcab844d5da0695f6a1627 Mon Sep 17 00:00:00 2001 From: Phoenix09 Date: Tue, 9 Jan 2018 18:38:59 +0000 Subject: [PATCH] website: Fix incorrect URLs in some API examples --- website/source/docs/vagrant-cloud/api.html.md.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/source/docs/vagrant-cloud/api.html.md.erb b/website/source/docs/vagrant-cloud/api.html.md.erb index cdc303aab..228c82234 100644 --- a/website/source/docs/vagrant-cloud/api.html.md.erb +++ b/website/source/docs/vagrant-cloud/api.html.md.erb @@ -1245,7 +1245,7 @@ Response body is identical to [Reading a provider](#read-a-provider). curl \ --header "Content-Type: application/json" \ --header "Authorization: Bearer $VAGRANT_CLOUD_TOKEN" \ - https://app.vagrantup.com/api/v1/box/myuser/test/version/1.2.3/virtualbox \ + https://app.vagrantup.com/api/v1/box/myuser/test/version/1.2.3/provider/virtualbox \ --request PUT \ --data ' { @@ -1266,7 +1266,7 @@ Response body is identical to [Reading a provider](#read-a-provider). "Authorization" => "Bearer #{ENV['VAGRANT_CLOUD_TOKEN']}" ) - response = api.put("/api/v1/box/myuser/test/version/1.2.3/virtualbox", json: { + response = api.put("/api/v1/box/myuser/test/version/1.2.3/provider/virtualbox", json: { provider: { name: "virtualbox", url: "https://example.com/virtualbox-1.2.3.box" @@ -1351,7 +1351,7 @@ Prepares the provider for upload, and returns a JSON blob containing an `upload_ ```shell response=$(curl \ --header "Authorization: Bearer $VAGRANT_CLOUD_TOKEN" \ - https://app.vagrantup.com/api/v1/box/myuser/test/version/1.2.3/virtualbox/upload) + https://app.vagrantup.com/api/v1/box/myuser/test/version/1.2.3/provider/virtualbox/upload) # Requires the jq command upload_path=$(echo "$response" | jq .upload_path) @@ -1370,7 +1370,7 @@ Prepares the provider for upload, and returns a JSON blob containing an `upload_ "Authorization" => "Bearer #{ENV['VAGRANT_CLOUD_TOKEN']}" ) - response = api.get("/api/v1/box/myuser/test/version/1.2.3/virtualbox/upload") + response = api.get("/api/v1/box/myuser/test/version/1.2.3/provider/virtualbox/upload") if response.status.success? # Success, you can now upload the box image to the returned URL