Skip to content

Instantly share code, notes, and snippets.

@kohai
Last active August 29, 2015 13:56
Show Gist options
  • Save kohai/9338039 to your computer and use it in GitHub Desktop.
Save kohai/9338039 to your computer and use it in GitHub Desktop.
campaigns
{
"resourcePath": "/creative",
"listingPath": "/creative/api-docs/campaigns",
"description": "Creative Campaigns API",
"apis": [
{
"path": "/creative/campaigns/",
"description": "",
"secured": false,
"operations": [
{
"httpMethod": "GET",
"responseClass": "EmbeddedCampaignsHolder",
"summary": "Return detailed information about all campaigns ready for use.",
"notes": "Latest campaigns will be returned first",
"deprecated": false,
"nickname": "getCampaigns",
"parameters": [],
"errorResponses": []
}
]
}
],
"models": {
"EmbeddedCampaignsHolder": {
"id": "EmbeddedCampaignsHolder",
"description": "EmbeddedCampaignsHolder",
"properties": {
"_embedded": {
"description": null,
"required": true,
"$ref": "Campaigns"
}
}
},
"Campaigns": {
"id": "Campaigns",
"description": "Campaigns",
"properties": {
"campaigns": {
"description": null,
"required": true,
"type": "Array",
"uniqueItems": false,
"items": {
"$ref": "Campaign"
}
}
}
},
"Campaign": {
"id": "Campaign",
"description": "Campaign",
"properties": {
"duration": {
"description": null,
"required": true,
"type": "string"
},
"serial": {
"description": null,
"required": true,
"type": "integer"
},
"treatment_id": {
"description": null,
"required": true,
"type": "integer"
},
"material_id": {
"description": null,
"required": true,
"type": "string"
},
"description": {
"description": null,
"required": true,
"type": "string"
}
}
}
},
"basePath": "http://cpp-tdorigin.cpp.o.itv.net.uk",
"swaggerVersion": "1.1",
"apiVersion": "1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment