Applications API


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": 36,
              "name": "jlane",
              "language": "ruby",
              "created_at": "2018-04-12T18:03:04+00:00",
              "updated_at": "2018-04-12T18:03:04+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/927063c1-a727-48ea-863a-7574f1a7a29b",
              "archives": null,
              "environments": "https://api.engineyard.com/applications/36/environments",
              "deployments": "https://api.engineyard.com/applications/36/deployments",
              "keypairs": "https://api.engineyard.com/applications/36/keypairs",
              "repository": "git://github.com/engineyard/awsm.git",
              "type": "rails3",
              "environment_variables": "https://api.engineyard.com/applications/36/environment_variables"
            }
          }
            
          








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": 37,
              "name": "jlane",
              "language": "ruby",
              "created_at": "2018-04-12T18:03:06+00:00",
              "updated_at": "2018-04-12T18:03:06+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/535259b8-37f2-4634-a90c-550af247922e",
              "archives": null,
              "environments": "https://api.engineyard.com/applications/37/environments",
              "deployments": "https://api.engineyard.com/applications/37/deployments",
              "keypairs": "https://api.engineyard.com/applications/37/keypairs",
              "repository": "git://github.com/engineyard/awsm.git",
              "type": "rails3",
              "environment_variables": "https://api.engineyard.com/applications/37/environment_variables"
            }
          }
            
          








Delete an application

DELETE /applications/:application

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 204 No Content
          Content-Type: 
          
            
          {
          }
            
          








List applications

GET /applications

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "applications": [
              {
                "id": 38,
                "name": "jlane",
                "language": "ruby",
                "created_at": "2018-04-12T18:03:08+00:00",
                "updated_at": "2018-04-12T18:03:08+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/e00fcb11-5b36-4328-97e5-2f7eb51f2a78",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/38/environments",
                "deployments": "https://api.engineyard.com/applications/38/deployments",
                "keypairs": "https://api.engineyard.com/applications/38/keypairs",
                "repository": "git://github.com/engineyard/awsm.git",
                "type": "rails3",
                "environment_variables": "https://api.engineyard.com/applications/38/environment_variables"
              },
              {
                "id": 39,
                "name": "isombra",
                "language": "ruby",
                "created_at": "2018-04-12T18:03:08+00:00",
                "updated_at": "2018-04-12T18:03:08+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/e00fcb11-5b36-4328-97e5-2f7eb51f2a78",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/39/environments",
                "deployments": "https://api.engineyard.com/applications/39/deployments",
                "keypairs": "https://api.engineyard.com/applications/39/keypairs",
                "repository": "git://github.com/engineyard/todo.git",
                "type": "rails2",
                "environment_variables": "https://api.engineyard.com/applications/39/environment_variables"
              }
            ]
          }
            
          








List applications by account

GET /accounts/:account/applications

Request

          Accept: application/vnd.engineyard.v3+json
          Content-Type: application/json
          
            
          {
          }
            
          

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "applications": [
              {
                "id": 40,
                "name": "jlane",
                "language": "ruby",
                "created_at": "2018-04-12T18:03:10+00:00",
                "updated_at": "2018-04-12T18:03:10+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/327bad3c-7ee1-49c3-accd-66e3e91beca4",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/40/environments",
                "deployments": "https://api.engineyard.com/applications/40/deployments",
                "keypairs": "https://api.engineyard.com/applications/40/keypairs",
                "repository": "git://github.com/engineyard/awsm.git",
                "type": "rails3",
                "environment_variables": "https://api.engineyard.com/applications/40/environment_variables"
              },
              {
                "id": 41,
                "name": "isombra",
                "language": "ruby",
                "created_at": "2018-04-12T18:03:10+00:00",
                "updated_at": "2018-04-12T18:03:10+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/327bad3c-7ee1-49c3-accd-66e3e91beca4",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/41/environments",
                "deployments": "https://api.engineyard.com/applications/41/deployments",
                "keypairs": "https://api.engineyard.com/applications/41/keypairs",
                "repository": "git://github.com/engineyard/todo.git",
                "type": "rails2",
                "environment_variables": "https://api.engineyard.com/applications/41/environment_variables"
              }
            ]
          }