Created
October 23, 2012 18:43
-
-
Save jvkumar/3940701 to your computer and use it in GitHub Desktop.
Packagedb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /packages/latest?os=windows | |
------------------------------- | |
[{ | |
"required": "1.0.0.80", | |
"product": "thoragent", | |
"target": "testing", | |
"os": "windows", | |
"id": 327, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.80.zip", | |
"thor_dep": 0, | |
"recommended": "1.0.0.88", | |
"recommendedurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.88.zip" | |
}, { | |
"required": "1.0.0.52", | |
"product": "client", | |
"target": "testing", | |
"os": "windows", | |
"id": 448, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.52-Setup-x86.exe", | |
"thor_dep": 350, | |
"recommended": "1.0.0.50", | |
"recommendedurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.50-Setup-x86.exe" | |
}, { | |
"required": "1.0.0.52", | |
"product": "client", | |
"target": "development", | |
"os": "windows", | |
"id": 449, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.52-Setup-x86.exe", | |
"thor_dep": 349, | |
"recommended": "1.0.0.50", | |
"recommendedurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.50-Setup-x86.exe" | |
}, { | |
"required": "1.0.0.99", | |
"product": "thoragent", | |
"target": "development", | |
"os": "windows", | |
"id": 328, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.99.zip", | |
"thor_dep": 0, | |
"recommended": "1.0.0.88", | |
"recommendedurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.88.zip" | |
}, { | |
"required": "1.2.0", | |
"product": "couchdb", | |
"target": "development", | |
"os": "windows", | |
"id": 185, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/couchdb/CouchDb-1.2.0.zip", | |
"thor_dep": 0 | |
}, { | |
"required": "1.2.0", | |
"product": "couchdb", | |
"target": "testing", | |
"os": "windows", | |
"id": 186, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/couchdb/CouchDb-1.2.0.zip", | |
"thor_dep": 0 | |
}, { | |
"required": "1.0.0.52", | |
"product": "client", | |
"target": "staging", | |
"os": "windows", | |
"id": 353, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.52-Setup-x86.exe", | |
"thor_dep": 354, | |
"recommended": "1.0.0.45", | |
"recommendedurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.45-Setup-x86.exe" | |
}, { | |
"required": "1.2.0", | |
"product": "couchdb", | |
"target": "staging", | |
"os": "windows", | |
"id": 210, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/couchdb/CouchDb-1.2.0.zip", | |
"thor_dep": 0 | |
}, { | |
"required": "1.0.0.80", | |
"product": "thoragent", | |
"target": "staging", | |
"os": "windows", | |
"id": 324, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.80.zip", | |
"thor_dep": 0, | |
"recommended": "1.0.0.87", | |
"recommendedurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.87.zip" | |
}, { | |
"required": "1.0.0.52", | |
"product": "client", | |
"target": "production", | |
"os": "windows", | |
"id": 452, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.52-Setup-x86.exe", | |
"thor_dep": 455 | |
}, { | |
"required": "1.0.0.134", | |
"product": "thoragent", | |
"target": "production", | |
"os": "windows", | |
"id": 455, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.134.zip", | |
"thor_dep": 0 | |
}] | |
GET /packages/latest?os=windows&target=production | |
-------------------------------------------------- | |
[{ | |
"required": "1.0.0.52", | |
"product": "client", | |
"target": "production", | |
"os": "windows", | |
"id": 452, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/magniclient/MemeoC1-1.0.0.52-Setup-x86.exe", | |
"thor_dep": 455 | |
}, { | |
"required": "1.0.0.134", | |
"product": "thoragent", | |
"target": "production", | |
"os": "windows", | |
"id": 455, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.134.zip", | |
"thor_dep": 0 | |
}] | |
GET /packages/latest?os=windows&target=production&product=thoragent | |
------------------------------------------------------------------- | |
[{ | |
"required": "1.0.0.134", | |
"product": "thoragent", | |
"target": "production", | |
"os": "windows", | |
"id": 455, | |
"requiredurl": "http://com.memeo.magni.dl.s3.amazonaws.com/thoragent/MemeoC1Agent-1.0.0.134.zip", | |
"thor_dep": 0 | |
}] | |
GET /packages/latest | |
-------------------- | |
Here you did not pass any parameters, so it will grab all os, target and product latest package info. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest to have API having only two fields mandatory: OS and environment. Everything else could be optional. And response should always look like:
{
"thoragent":
{
"id": 443
"required": "1.0.0.34"
"requiredurl": "http://abcd.com/23423"
"recommended": "1.2.3.5"
"recommendedurl": "http://andf.com/23423"
"thor_dep": 0
},
"client":
{
"id": 421
"required": "1.23.0.34"
"requiredurl": "http://abcd.com/456er"
"recommended": "1.2.19.5"
"recommendedurl": "http://andf.com/t54"
"thor_dep": 0
}
}