Openglad Site API Documentation
POST /campaigns
Campaign uploading uses multipart/form-data requests.
Parameter | Description | Required |
file | multipart/form-data parameter containing campaign file to upload | Yes |
{
"id" : "b3fa51be-3a5c-4f4f-9bb8-e3da400ecbad",
"formatVersion" : 1,
"title" : "Gladiator",
"version" : 1,
"authors" : "Forgotten Sages",
"contributors" : null,
"description" : "You lead a band of mercenaries \nand adventurers, each seeking to \nearn glory and gold in this hostile \nworld through conquest. With only \nthe money you stole from an imperial \nguardsman, along with your allies \nTroy and the Commander, you must \nchoose your troops wisely in\norder to survive, and make a profit.\n\nDon't forget to train your \ntroops once you have the money, as \nsufficient skill overcomes superior \nnumbers. After each successful \nmission, you will have the opportunity \nto squander your profits. Save often, \nas you may quickly regret your choices.\n\nRemember, Troy and Commander\nare your friends, but not under your\npay. You can't train them, and they\nmay leave your team at any time.\n\nNow, go out and seek your fortune..."
}
curl -F [email protected] http://openglad-site.appspot.com/campaigns
GET /campaigns/{campaignId}
None
{
"id" : "b3fa51be-3a5c-4f4f-9bb8-e3da400ecbad",
"formatVersion" : 1,
"title" : "Gladiator",
"version" : 1,
"authors" : "Forgotten Sages",
"contributors" : null,
"description" : "You lead a band of mercenaries \nand adventurers, each seeking to \nearn glory and gold in this hostile \nworld through conquest. With only \nthe money you stole from an imperial \nguardsman, along with your allies \nTroy and the Commander, you must \nchoose your troops wisely in\norder to survive, and make a profit.\n\nDon't forget to train your \ntroops once you have the money, as \nsufficient skill overcomes superior \nnumbers. After each successful \nmission, you will have the opportunity \nto squander your profits. Save often, \nas you may quickly regret your choices.\n\nRemember, Troy and Commander\nare your friends, but not under your\npay. You can't train them, and they\nmay leave your team at any time.\n\nNow, go out and seek your fortune..."
}
curl -H Accept:application/json http://openglad-site.appspot.com/campaigns/b3fa51be-3a5c-4f4f-9bb8-e3da400ecbad
GET /campaigns/{campaignId}/file
None
Campaign file as application/octet-stream
raw bytes.
curl http://openglad-site.appspot.com/campaigns/b3fa51be-3a5c-4f4f-9bb8-e3da400ecbad/file > campaign.glad
GET /campaigns/recent
This returns recently uploaded campaigns in the past 7 days (max 50 campaigns).
None
[ {
"id" : "b3fa51be-3a5c-4f4f-9bb8-e3da400ecbad",
"formatVersion" : 1,
"title" : "Gladiator",
"version" : 1,
"authors" : "Forgotten Sages",
"contributors" : null,
"description" : "You lead a band of mercenaries \nand adventurers, each seeking to \nearn glory and gold in this hostile \nworld through conquest. With only \nthe money you stole from an imperial \nguardsman, along with your allies \nTroy and the Commander, you must \nchoose your troops wisely in\norder to survive, and make a profit.\n\nDon't forget to train your \ntroops once you have the money, as \nsufficient skill overcomes superior \nnumbers. After each successful \nmission, you will have the opportunity \nto squander your profits. Save often, \nas you may quickly regret your choices.\n\nRemember, Troy and Commander\nare your friends, but not under your\npay. You can't train them, and they\nmay leave your team at any time.\n\nNow, go out and seek your fortune..."
} ]
curl http://openglad-site.appspot.com/campaigns/recent