UpgradeChecker
Revision 3 as of 2013-08-20 15:59:43
Clear message
Upgrade checker
Contact: Ricardo Kirkner (pindonga)
The upgrade-checker API is part of the developer portal codebase, and will therefore be available at the myapps.developer.ubuntu.com domain. The API consists of a very simple resource that can be queried to retrieve the current version strings for any specified apps (by id).
Get application versions
Using GET
GET /dev/api/click-metadata/?name=com.ubuntu.ubuntu-calculator&name=com.ubuntu.ubuntu-weather HTTP/1.1
Host: myapps.developer.ubuntu.com
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"version": "0.1",
"name": "com.ubuntu.ubuntu-calculator"
},
{
"version": "0.2",
"name": "com.ubuntu.ubuntu-weather"
}
]
Using POST
POST /dev/api/click-metadata HTTP/1.1
Host: myapps.developer.ubuntu.com
Content-Type: application/json
{"name": ["com.ubuntu.ubuntu-calculator", "com.ubuntu.ubuntu-weather"]}
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"version": "0.1",
"name": "com.ubuntu.ubuntu-calculator"
},
{
"version": "0.2",
"name": "com.ubuntu.ubuntu-weather"
}
]