ContinuityApp

Create a Project

Creates a new project for the user doing the request.

Auth&ACL

Users can access this API (collaborators cannot), via OAuth projects scope (or HTTP Basic Authentication for development purposes).

Definition

POST https://v1.continuityapp.ws/projects

Arguments

Arguments    
name Required Human-friendly name of the project.
repository_url Required URL of the repository where we need to connect to fetch the code. The URL where git must push to. URL must be without protocol, eg: git@github.com:sinatra/sinatra.git
description Optional An arbitrary string which you can attach to the project.

Example request

$ curl https://v1.continuityapp.ws/projects?oauth_token=<access_token> \
    -d "name=Sinatra" \
    -d "repository_url=git@github.com:sinatra/sinatra.git" \
    -d "description=Classy web-development dressed in a DSL" \
    -X POST

Returns

The created project is returned, along with the public key you will need to install into your VCS to let us fetch project's code. We store keys encrypting them using the AES-256-CBC cipher. See Project Fetch API for fields explanation.

Example response

{
  "response": {
    "id": 123456789123456789,
    "id_str": "123456789123456789",
    "name": "Sinatra",
    "description": "Classy web-development dressed in a DSL",
    "repository_url": "git@github.com:sinatra/sinatra.git",
    "build_state": "new",
    "owned": true,
    "ssh_public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFmRIuChcnMFO7T1UuuTWxBtaOpLebx/duxK6RMhyAw+Bt/yxCejXZNazLF1K3AZtAICT+ydngYRlI355DsCzmkq8EclFsvUttTitI7DBiSQHH4yoAzABC8ZtEIRa5UrxsL7Qp1CxOkXur6wyWhd39rtXvEfFgu3xprChoQALa51/LSApn1Q4R8190R3ispDLUODUn6LQEfUvzVztBypGGP5PvV4qQogWRRyGhX5J6ZYL8Fj6HuYA/amEzAaKwtyoWIVDllqxVDXkeTfX3197KdfS2W/c2GYCsYNi+QkoHCC4NZ+CzOvVTuVYGTMII/OzB63VMn7TEhcS4N2k8TM/V https://continuityapp.com"
  }
}

Errors

There are no specific errors for this API.

comments powered by Disqus