{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/go-dockercloud/issues/15","repository_url":"https://api.github.com/repos/docker/go-dockercloud","labels_url":"https://api.github.com/repos/docker/go-dockercloud/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/docker/go-dockercloud/issues/15/comments","events_url":"https://api.github.com/repos/docker/go-dockercloud/issues/15/events","html_url":"https://github.com/docker/go-dockercloud/issues/15","id":144703784,"number":15,"title":"Default BaseUrl missing /api","user":{"login":"nextrevision","id":2991219,"avatar_url":"https://avatars.githubusercontent.com/u/2991219?v=3","gravatar_id":"","url":"https://api.github.com/users/nextrevision","html_url":"https://github.com/nextrevision","followers_url":"https://api.github.com/users/nextrevision/followers","following_url":"https://api.github.com/users/nextrevision/following{/other_user}","gists_url":"https://api.github.com/users/nextrevision/gists{/gist_id}","starred_url":"https://api.github.com/users/nextrevision/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextrevision/subscriptions","organizations_url":"https://api.github.com/users/nextrevision/orgs","repos_url":"https://api.github.com/users/nextrevision/repos","events_url":"https://api.github.com/users/nextrevision/events{/privacy}","received_events_url":"https://api.github.com/users/nextrevision/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-30T19:59:30Z","updated_at":"2016-03-30T19:59:30Z","closed_at":null,"body":"Using a very basic example from the docs, I'm getting a 404 when attempting to make any API calls. Below is an example:\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n        \"fmt\"\r\n        \"github.com/docker/go-dockercloud/dockercloud\"\r\n)\r\n\r\nfunc main() {\r\n        println(dockercloud.BaseUrl)\r\n        nodecluster, err := dockercloud.CreateNodeCluster(dockercloud.NodeCreateRequest{\r\n                Name: \"my_cluster\",\r\n                Region: \"/api/infra/v1/region/aws/us-east-1/\",\r\n                NodeType: \"/api/infra/v1/nodetype/aws/t2.micro/\",\r\n                Target_num_nodes: 2\r\n        })\r\n\r\n        if err != nil {\r\n                println(err.Error())\r\n        }\r\n\r\n        fmt.Printf(\"%+v\\n\", nodecluster)\r\n}\r\n```\r\n\r\nUpon execution I see the following:\r\n\r\n```\r\n# go run test.go\r\nhttps://cloud.docker.com/\r\nFailed API call: 404 Not Found\r\n{Current_num_nodes:0 Deployed_datetime: Destroyed_datetime: Disk:0 Name: Nodes:[] NodeType: Provider_options:{Vpc:{Id: Subnets:[] Security_groups:[]} Iam:{Instance_profile_name:}} Region: Resource_uri: State: Tags:[] Target_num_nodes:0 Uuid:}\r\n```\r\n\r\nSetting the BaseUrl manually by appending `/api/` resolves the issue:\r\n\r\n```\r\ndockercloud.BaseUrl = fmt.Sprintf(\"%sapi/\", dockercloud.BaseUrl)\r\n```"}}