Update API docs for wars & campaigns following CC-62 changes

pull/46/head
HardiReady 2018-10-18 20:56:06 +02:00
parent 9fb39b0af2
commit 229b133777
2 changed files with 17 additions and 3 deletions

View File

@ -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]

View File

@ -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}]