{
"id": "errorbucket",
"api": {
"config_vars": [
"ERRORBUCKET_URL"
],
"password": "GqAGAmdrnkDFcvR9",
"sso_salt": "7CwqmJLEjv8YZTXK",
"regions": ["us","eu"],
"requires": ["log_input"],
"production": {
"base_url": "https://errorbucket.com/heroku/resources",
"sso_url": "https://errorbucket.com/sso/login"
},
"test": {
"base_url": "http://localhost:4567/heroku/resources",
"sso_url": "http://localhost:4567/sso/login"
}
}
}
Request: POST https://username:password@api.youraddon.com/heroku/resources
Request Body: {
"heroku_id": "app123@heroku.com",
"plan": "basic",
"region": "amazon-web-services::us-east-1",
"callback_url": "https://api.heroku.com/vendor/apps/app123%40heroku.com",
"log_input_url": "https://token:t.01234567-89ab-cdef-0123-456789abcdef@1.us.logplex.io/logs",
"options": {}
}
Response Body: {
"id": "your-internal-unique-id",
"config": {"MYADDON_URL": "http://myaddon.com/52e82f5d73"},
"message": "your message here"
}
Request: PUT https://username:password@api.youraddon.com/heroku/resources/:id
Request Body: {"heroku_id": "app123@heroku.com", "plan": "premium"}
Response Body: {"config": { ... }, "message": "your message here"}
Request: DELETE https://username:password@api.youraddon.com/heroku/resources/:id Request Body: none Response Status: 200
kensa test provision Testing POST /heroku/resources Check response [PASS] Check valid JSON [PASS] Check authentication [PASS] Testing response Check contains an id [PASS] Testing config data Check is a hash [PASS] Check all config keys were previously defined in the manifest [PASS] Check all config values are strings [PASS] done.
原文地址:http://blog.csdn.net/lizeyang/article/details/40510271