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-05-29T11:01:21+00:00",
              "updated_at": "2018-05-29T11:01:21+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/84505a6a-3608-40cf-8846-3ffa893b2346",
              "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-05-29T11:01:23+00:00",
              "updated_at": "2018-05-29T11:01:23+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/b31a26e0-cbf7-4667-b6da-ea44d57645a7",
              "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-05-29T11:01:25+00:00",
                "updated_at": "2018-05-29T11:01:25+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/51fd96c1-83c8-4a18-9738-18e26cc3ea3e",
                "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-05-29T11:01:25+00:00",
                "updated_at": "2018-05-29T11:01:25+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/51fd96c1-83c8-4a18-9738-18e26cc3ea3e",
                "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": 41,
                "name": "isombra",
                "language": "ruby",
                "created_at": "2018-05-29T11:01:28+00:00",
                "updated_at": "2018-05-29T11:01:28+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/7c21eda9-ec69-4a2f-a3f5-a01141c12215",
                "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"
              },
              {
                "id": 40,
                "name": "jlane",
                "language": "ruby",
                "created_at": "2018-05-29T11:01:27+00:00",
                "updated_at": "2018-05-29T11:01:27+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/7c21eda9-ec69-4a2f-a3f5-a01141c12215",
                "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"
              }
            ]
          }