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": 53,
              "name": "jlane",
              "language": "ruby",
              "created_at": "2017-10-10T16:04:26+00:00",
              "updated_at": "2017-10-10T16:04:26+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/d43c17da-4b14-4c0c-9284-3e73a338e070",
              "archives": null,
              "environments": "https://api.engineyard.com/applications/53/environments",
              "deployments": "https://api.engineyard.com/applications/53/deployments",
              "keypairs": "https://api.engineyard.com/applications/53/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": 54,
              "name": "jlane",
              "language": "ruby",
              "created_at": "2017-10-10T16:04:28+00:00",
              "updated_at": "2017-10-10T16:04:28+00:00",
              "deleted_at": null,
              "account": "https://api.engineyard.com/accounts/9c2b62a0-437d-45ec-9728-848c97c13146",
              "archives": null,
              "environments": "https://api.engineyard.com/applications/54/environments",
              "deployments": "https://api.engineyard.com/applications/54/deployments",
              "keypairs": "https://api.engineyard.com/applications/54/keypairs",
              "repository": "git://github.com/engineyard/awsm.git",
              "type": "rails3"
            }
          }
            
          








Delete an application

DELETE /applications/:application

Response

          Status: 204 No Content
          Content-Type: 
          
            
          {
          }
            
          








List applications

GET /applications

Response

          Status: 200 OK
          Content-Type: application/json; charset=utf-8
          
            
          {
            "applications": [
              {
                "id": 55,
                "name": "jlane",
                "language": "ruby",
                "created_at": "2017-10-10T16:04:30+00:00",
                "updated_at": "2017-10-10T16:04:30+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/dc99eb2d-7fcd-46dc-afbd-4c0356833f3e",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/55/environments",
                "deployments": "https://api.engineyard.com/applications/55/deployments",
                "keypairs": "https://api.engineyard.com/applications/55/keypairs",
                "repository": "git://github.com/engineyard/awsm.git",
                "type": "rails3"
              },
              {
                "id": 56,
                "name": "isombra",
                "language": "ruby",
                "created_at": "2017-10-10T16:04:30+00:00",
                "updated_at": "2017-10-10T16:04:30+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/dc99eb2d-7fcd-46dc-afbd-4c0356833f3e",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/56/environments",
                "deployments": "https://api.engineyard.com/applications/56/deployments",
                "keypairs": "https://api.engineyard.com/applications/56/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": 57,
                "name": "jlane",
                "language": "ruby",
                "created_at": "2017-10-10T16:04:33+00:00",
                "updated_at": "2017-10-10T16:04:33+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/066fcdd7-1374-48d4-8607-616e2bda56a4",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/57/environments",
                "deployments": "https://api.engineyard.com/applications/57/deployments",
                "keypairs": "https://api.engineyard.com/applications/57/keypairs",
                "repository": "git://github.com/engineyard/awsm.git",
                "type": "rails3"
              },
              {
                "id": 58,
                "name": "isombra",
                "language": "ruby",
                "created_at": "2017-10-10T16:04:33+00:00",
                "updated_at": "2017-10-10T16:04:33+00:00",
                "deleted_at": null,
                "account": "https://api.engineyard.com/accounts/066fcdd7-1374-48d4-8607-616e2bda56a4",
                "archives": null,
                "environments": "https://api.engineyard.com/applications/58/environments",
                "deployments": "https://api.engineyard.com/applications/58/deployments",
                "keypairs": "https://api.engineyard.com/applications/58/keypairs",
                "repository": "git://github.com/engineyard/todo.git",
                "type": "rails2"
              }
            ]
          }