Deploy API Documentation

Listing all projects

This method allows you to create a new project.

URL

/projects

HTTP Method

GET

Supported Parameters

  • none

Example JSON

[
  {
    "name": "Project Name",
    "permalink": "project-name",
    "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAA...",
    "repository": null
  }
]

Example cURL Request

curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
http://test.deploy.dev/projects/

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"
          }
      }
  }
]