diff --git a/api/apib/statistics/campaigns.apib b/api/apib/statistics/campaigns.apib index 2b4cc8f..95c9edf 100644 --- a/api/apib/statistics/campaigns.apib +++ b/api/apib/statistics/campaigns.apib @@ -2,7 +2,6 @@ Get all campaigns information - + Response 200 (application/json; charset=utf-8) + Attributes (array[Campaign], fixed-type) @@ -17,6 +16,18 @@ Get single campaign information + Response 200 (application/json; charset=utf-8) + Attributes (Campaign, fixed-type) + +### Get Campaign Containing Specific War [GET /campaigns/with/war/{warId}] + +Get a single campaign, containing a specific war + ++ Parameters + + warId: `5abf65ae3fc5fa349ffd5ca3` (string, required) - unique id of war that has to be part of campaign + ++ Response 200 (application/json; charset=utf-8) + + + Attributes (Campaign, fixed-type) + ### Create Campaign [POST /campaigns] diff --git a/api/apib/statistics/wars.apib b/api/apib/statistics/wars.apib index c370a9c..01959ba 100644 --- a/api/apib/statistics/wars.apib +++ b/api/apib/statistics/wars.apib @@ -1,10 +1,13 @@ -### List Wars [GET /wars] +### List Wars [GET /wars{?campaignId}] List all wars, subordinate to their campaign ++ Parameters + + campaignId: `5abd55ea9e30a76bfef747d6` (string, optional) - show only wars from campaign with this id + + Response 200 (application/json; charset=utf-8) - + Attributes (array[WarCampaign], fixed-type) + + Attributes (array[War], fixed-type) ### Get War [GET /wars/{id}]