2018-04-01 15:12:24 +02:00
|
|
|
### List Wars [GET /wars]
|
2018-03-31 13:05:21 +02:00
|
|
|
|
2018-04-01 15:12:24 +02:00
|
|
|
List all wars, subordinate to their campaign
|
2018-03-31 13:05:21 +02:00
|
|
|
|
2018-04-01 15:12:24 +02:00
|
|
|
+ Response 200 (application/json; charset=utf-8)
|
2018-03-31 13:05:21 +02:00
|
|
|
|
2018-04-01 15:12:24 +02:00
|
|
|
+ Attributes (array[WarCampaign], fixed-type)
|
2018-03-31 13:05:21 +02:00
|
|
|
|
2018-04-01 15:12:24 +02:00
|
|
|
### Get War [GET /wars/{id}]
|
2018-03-31 13:05:21 +02:00
|
|
|
|
|
|
|
Retrieve single war data
|
|
|
|
|
|
|
|
+ Parameters
|
|
|
|
+ id: `5abf65ae3fc5fa349ffd5ca3` (string, required) - unique id of the war to fetch
|
|
|
|
|
2018-04-01 10:59:09 +02:00
|
|
|
+ Response 200 (application/json; charset=utf-8)
|
2018-03-31 13:05:21 +02:00
|
|
|
|
2018-04-01 15:12:24 +02:00
|
|
|
+ Attributes (WarWithPlayers, fixed-type)
|
2018-03-31 13:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Create War [POST /wars]
|
|
|
|
|
|
|
|
Create a new war
|
|
|
|
|
2018-04-01 16:32:44 +02:00
|
|
|
*Permission: 3*
|
|
|
|
|
2018-03-31 13:20:18 +02:00
|
|
|
*NOTE: First line of the log file sent should be NOT beginning of actual game logs! This might result in unparsable line.*
|
|
|
|
|
|
|
|
+ Request (multipart/form-data; boundary=---BOUNDARY)
|
|
|
|
|
|
|
|
-----BOUNDARY
|
|
|
|
Content-Disposition: form-data; name="title"
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
Battle XY
|
|
|
|
-----BOUNDARY
|
|
|
|
Content-Disposition: form-data; name="campaign"
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
5abd55ea9e30a76bfef747d6
|
|
|
|
-----BOUNDARY
|
|
|
|
Content-Disposition: form-data; name="log"; filename="war_2018_log.rpt"
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
\
|
|
|
|
2018/03/20, 20:05:43 "[OPT] (Budget) LOG: 0:00:00 --- Startbudget: NATO 4.5355e+006 - CSAT 4.22125e+006"
|
|
|
|
2018/03/20, 20:06:45 "[OPT] (Budget) LOG: 0:01:02 --- NATO alt: 4.5355e+006 - neu: 4.1955e+006 - Differenz: -340000"
|
|
|
|
2018/03/20, 20:10:11 "[OPT] (Abschuss) LOG: 0:04:28 --- Saxe (WEST) von: Selbstverschulden."
|
|
|
|
2018/03/20, 20:10:11 "[OPT] (Abschuss) LOG: 0:04:28 --- Pumarang (WEST) von: Saxe (WEST)."
|
|
|
|
2018/03/20, 20:10:13 "[OPT] (Budget) LOG: 0:04:30 --- CSAT alt: 2.38425e+006 - neu: 2.32425e+006 - Differenz: -60000"
|
|
|
|
2018/03/20, 20:10:38 "[OPT] (Respawn) LOG: 0:04:55 --- Spieler: Pumarang - Kosten: 3000"
|
|
|
|
2018/03/20, 20:15:54 "[OPT] (Punkte) LOG: 0:10:11 --- Kein Dominator (NATO 0 | CSAT 0)"
|
|
|
|
2018/03/20, 20:17:51 "[OPT] (Abschuss) LOG: 0:12:08 --- patze (EAST) von: Wiesl (WEST)."
|
|
|
|
2018/03/20, 20:18:20 "[OPT] (Fahne) LOG: 0:12:37 --- CSAT Flagge erobert von Wiesl"
|
|
|
|
2018/03/20, 20:18:38 "[OPT] (Abschuss) LOG: 0:12:55 --- Nicolas (WEST) von: Wiesl (WEST)."
|
|
|
|
2018/03/20, 20:18:59 "[OPT] (Punkte) LOG: 0:13:16 --- NATO +1 (NATO 1 | CSAT 0)"
|
|
|
|
2018/03/20, 20:19:38 "[OPT] (Fahne) LOG: 0:13:56 --- CSAT Flagge gesichert von ALASTOR"
|
|
|
|
2018/03/20, 20:22:18 "[OPT] (Abschuss) LOG: 0:16:35 --- Fahrzeug: Hunter-HMG (OPT_NATO) von: Murda]X[ (EAST)."
|
|
|
|
2018/03/20, 20:37:19 "[OPT] (Transport) LOG: 0:31:36 --- Dominik (WEST) wurde von Ponykloete (WEST) eingeflogen (8666.94 m)"
|
|
|
|
2018/03/20, 20:41:27 "[OPT] (Revive) LOG: 0:35:44 --- Bodochecker (EAST) wurde von ALASTOR (EAST) stabilisiert."
|
|
|
|
2018/03/20, 20:41:35 "[OPT] (Revive) LOG: 0:35:52 --- Andi-de (WEST) wurde von Wiesl (WEST) wiederbelebt."
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Mission) LOG: 2:30:00 --- Missionzeit abgelaufen"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- Pumarang (WEST), PUID 76561198050321485"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- Mercurat (WEST), PUID 76561198278842491"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- KalleK (EAST), PUID 76561197977676036"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- MAPster (EAST), PUID 76561198009882133"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- LyrikEmu (WEST), PUID 76561198218910400"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- Philipp (EAST), PUID 76561198041792069"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- Wiesl (WEST), PUID 76561198059648090"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Fraktionsuebersicht) LOG: 2:30:00 --- Murda]X[ (EAST), PUID 76561197971121630"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Budget) LOG: 2:30:00 --- Endbudget: (NATO 1997000 | CSAT 512000)"
|
|
|
|
2018/03/20, 22:35:43 "[OPT] (Punkte) LOG: 2:30:00 --- Endpunktestand: (NATO 34 | CSAT 25)"
|
|
|
|
-----BOUNDARY--
|
|
|
|
|
2018-04-01 15:12:24 +02:00
|
|
|
+ Response 201 (application/json; charset=utf-8)
|
2018-03-31 13:20:18 +02:00
|
|
|
|
|
|
|
+ Attributes (War, fixed-type)
|
|
|
|
|
|
|
|
### Delete War [DELETE /wars/{id}]
|
|
|
|
|
|
|
|
Delete a war
|
|
|
|
|
2018-04-01 16:32:44 +02:00
|
|
|
*Permission: 3*
|
|
|
|
|
2018-03-31 13:20:18 +02:00
|
|
|
+ Parameters
|
|
|
|
+ id: `5abf65d83fc5fa349ffd5cbb` (string, required) - unique id of the war
|
|
|
|
|
|
|
|
+ Response 204
|
|
|
|
|