Header

View an existing project

This method allows you to view an existing project.

URL

/projects/<project>

Replace <project> with the permalink of the project.

HTTP Method

GET

Supported Parameters

None

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://atech.deployhq.com/projects/hgtest

Example Response

[
  {
    "name":"hgtest",
    "permalink":"hgtest",
    "public_key":"ssh-rsa AAAB3NzaC1yc2EAAAADAQAN DeployHQ.com Key for hgtest",
    "repository":
      {
        "scm_type":"mercurial",
        "url":"ssh://hg@codebasehq.com/adamw/test/hgtest.hg",
        "port":null,
        "username":null,
        "branch":"default",
        "cached":true,
        "hosting_service":
          {
            "name":"Codebase",
            "url":"http://www.codebasehq.com",
            "tree_url":"https://adamw.codebasehq.com/projects/test/repositories/hgtest/tree/default",
            "commits_url":"https://adamw.codebasehq.com/projects/test/repositories/hgtest/commits/default"
          }
      }
  }
]