Applications API


List applications

GET /applications

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "applications": [
              {
                "id": 3,
                "name": "jlane",
                "language": "ruby",
                "created_at": "2017-02-22T17:02:11+00:00",
                "updated_at": "2017-02-22T17:02:11+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/3599376f-9441-4e6a-94da-0706dd355ad6",
                "archives": null,
                "deployments": "https://api.engineyard.com/applications/3/deployments",
                "keypairs": "https://api.engineyard.com/applications/3/keypairs",
                "repository": "git://github.com/engineyard/awsm.git",
                "type": "rails3"
              },
              {
                "id": 4,
                "name": "isombra",
                "language": "ruby",
                "created_at": "2017-02-22T17:02:11+00:00",
                "updated_at": "2017-02-22T17:02:11+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/3599376f-9441-4e6a-94da-0706dd355ad6",
                "archives": null,
                "deployments": "https://api.engineyard.com/applications/4/deployments",
                "keypairs": "https://api.engineyard.com/applications/4/keypairs",
                "repository": "git://github.com/engineyard/todo.git",
                "type": "rails2"
              }
            ]
          }
            
          








List applications by account

GET /accounts/:account/applications

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "applications": [
              {
                "id": 5,
                "name": "jlane",
                "language": "ruby",
                "created_at": "2017-02-22T17:02:20+00:00",
                "updated_at": "2017-02-22T17:02:20+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/6d8fd219-c657-4489-85d7-3a45c7cf455c",
                "archives": null,
                "deployments": "https://api.engineyard.com/applications/5/deployments",
                "keypairs": "https://api.engineyard.com/applications/5/keypairs",
                "repository": "git://github.com/engineyard/awsm.git",
                "type": "rails3"
              },
              {
                "id": 6,
                "name": "isombra",
                "language": "ruby",
                "created_at": "2017-02-22T17:02:20+00:00",
                "updated_at": "2017-02-22T17:02:20+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/6d8fd219-c657-4489-85d7-3a45c7cf455c",
                "archives": null,
                "deployments": "https://api.engineyard.com/applications/6/deployments",
                "keypairs": "https://api.engineyard.com/applications/6/keypairs",
                "repository": "git://github.com/engineyard/todo.git",
                "type": "rails2"
              }
            ]
          }
            
          








Delete an application

DELETE /applications/:application

Response

          Status: 204 No Content
          Content-Type: 
          
            
          {
          }
            
          








Create an application

POST /applications

Parameters

name
required: true
scope: application
Name of the application
repository
required: true
scope: application
URI of the application. i.e. 'git://github.com/engineyard.todo.git'
type
required: true
scope: application
Type of application. One of ["rack", "merb", "sinatra", "rails2", "rails3", "rails4", "rails5", "nodejs", "php", "java", "noapp", "phoenix"]
account
required: false
Account to assign to application to

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
            "application": {
              "name": "jlane",
              "repository": "git://github.com/engineyard/awsm.git",
              "type": "rails3"
            }
          }
            
          

Response

          Status: 201 Created
          Content-Type: application/json; charset=utf-8
          
            
          {
            "application": {
              "id": 1,
              "name": "jlane",
              "language": "ruby",
              "created_at": "2017-02-22T17:01:53+00:00",
              "updated_at": "2017-02-22T17:01:53+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/00d1cf75-4070-445b-b105-f94a3f723a0c",
              "archives": null,
              "deployments": "https://api.engineyard.com/applications/1/deployments",
              "keypairs": "https://api.engineyard.com/applications/1/keypairs",
              "repository": "git://github.com/engineyard/awsm.git",
              "type": "rails3"
            }
          }
            
          








Create an application in a specific account

POST /accounts/:account/applications

Parameters

name
required: true
scope: application
Name of the application
repository
required: true
scope: application
URI of the application. i.e. 'git://github.com/engineyard.todo.git'
type
required: true
scope: application
Type of application. One of ["rack", "merb", "sinatra", "rails2", "rails3", "rails4", "rails5", "nodejs", "php", "java", "noapp", "phoenix"]

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
            "application": {
              "name": "jlane",
              "repository": "git://github.com/engineyard/awsm.git",
              "type": "rails3"
            }
          }
            
          

Response

          Status: 201 Created
          Content-Type: application/json; charset=utf-8
          
            
          {
            "application": {
              "id": 2,
              "name": "jlane",
              "language": "ruby",
              "created_at": "2017-02-22T17:02:00+00:00",
              "updated_at": "2017-02-22T17:02:00+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/2171e4e8-c5e8-4be1-a527-b7cf3657a1bf",
              "archives": null,
              "deployments": "https://api.engineyard.com/applications/2/deployments",
              "keypairs": "https://api.engineyard.com/applications/2/keypairs",
              "repository": "git://github.com/engineyard/awsm.git",
              "type": "rails3"
            }
          }