Update API docs for wars & campaigns following CC-62 changes
parent
9fb39b0af2
commit
229b133777
|
@ -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]
|
||||
|
||||
|
|
|
@ -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}]
|
||||
|
||||
|
|
Loading…
Reference in New Issue