POST /applications
Accept: application/vnd.engineyard.v3+json Content-Type: application/json
{
"application": {
"name": "jlane",
"repository": "git://github.com/engineyard/awsm.git",
"type": "rails3"
}
}
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"
}
}
POST /accounts/:account/applications
Accept: application/vnd.engineyard.v3+json Content-Type: application/json
{
"application": {
"name": "jlane",
"repository": "git://github.com/engineyard/awsm.git",
"type": "rails3"
}
}
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 /applications/:application
Accept: application/vnd.engineyard.v3+json Content-Type: application/json
{
}
Status: 204 No Content Content-Type:
{
}
GET /applications
Accept: application/vnd.engineyard.v3+json Content-Type: application/json
{
}
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"
}
]
}
GET /accounts/:account/applications
Accept: application/vnd.engineyard.v3+json Content-Type: application/json
{
}
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"
}
]
}