Compare commits
2 Commits
85b97c771f
...
3c5dbcd71d
Author | SHA1 | Date |
---|---|---|
HardiReady | 3c5dbcd71d | |
HardiReady | 7d3bf9a426 |
|
@ -0,0 +1,61 @@
|
||||||
|
### Get Squads [GET /squads{?q,fractFilter}]
|
||||||
|
|
||||||
|
Get single army member information
|
||||||
|
|
||||||
|
+ Parameters
|
||||||
|
+ q: `alpha` (string, optional) - filter string which filters for partial squadname
|
||||||
|
|
||||||
|
+ fractFilter: `BLUFOR` (enum[string], optional)
|
||||||
|
Field to filter by fraction
|
||||||
|
|
||||||
|
+ Members
|
||||||
|
+ `BLUFOR`
|
||||||
|
+ `OPFOR`
|
||||||
|
+ `GLOBAL`
|
||||||
|
|
||||||
|
+ Response 200
|
||||||
|
|
||||||
|
+ Attributes (array[Squad], fixed-type)
|
||||||
|
|
||||||
|
### Get Squad [GET /squads/{id}]
|
||||||
|
|
||||||
|
Get single squad information
|
||||||
|
|
||||||
|
+ Parameters
|
||||||
|
+ id: `5aba54eaeadcce6332c6a774` (string, required) - unique id of the squad
|
||||||
|
|
||||||
|
+ Response 200
|
||||||
|
|
||||||
|
+ Attributes (Squad, fixed-type)
|
||||||
|
|
||||||
|
### Create Squad [POST /squads]
|
||||||
|
|
||||||
|
Create a new squad
|
||||||
|
|
||||||
|
+ Request (multipart/form-data; boundary=---BOUNDARY)
|
||||||
|
|
||||||
|
-----BOUNDARY
|
||||||
|
Content-Disposition: form-data; name="name"
|
||||||
|
Content-Type: text/plain
|
||||||
|
|
||||||
|
test
|
||||||
|
-----BOUNDARY
|
||||||
|
Content-Disposition: form-data; name="fraction"
|
||||||
|
Content-Type: text/plain
|
||||||
|
|
||||||
|
BLUFOR
|
||||||
|
-----BOUNDARY
|
||||||
|
Content-Disposition: form-data; name="image"; filename="image.jpg"
|
||||||
|
Content-Type: image/jpeg
|
||||||
|
Content-Transfer-Encoding: base64
|
||||||
|
|
||||||
|
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
|
||||||
|
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
|
||||||
|
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAABAAEDASIA
|
||||||
|
AhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEB
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AL+AD//Z
|
||||||
|
-----BOUNDARY--
|
||||||
|
|
||||||
|
+ Response 201
|
||||||
|
|
||||||
|
+ Attributes (User, fixed-type)
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Campaign (object)
|
||||||
|
Campaign entity
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
+ _id:`5abd55ea9e30a76bfef747d6` (string, required) - unique id of the campaign
|
||||||
|
+ title: `Ein Kessel Buntes` (string, required) - display title of the campaign
|
||||||
|
+ timestamp: `2017-05-17T19:44:28.751Z` (string, required) - creation date
|
||||||
|
+ updatedAt: `"2017-05-17T19:44:28.751Z` (string, required) - version date
|
||||||
|
+ __v: 0 (number, required) - version number
|
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
:[Gists](_awarding.apib)
|
:[Gists](_awarding.apib)
|
||||||
|
|
||||||
|
:[Gists](_campaign.apib)
|
||||||
|
|
||||||
:[Gists](_decoration.apib)
|
:[Gists](_decoration.apib)
|
||||||
|
|
||||||
:[Gists](_promotion.apib)
|
:[Gists](_promotion.apib)
|
||||||
|
|
|
@ -32,6 +32,8 @@ FORMAT: 1A
|
||||||
|
|
||||||
# Group Campaigns
|
# Group Campaigns
|
||||||
|
|
||||||
|
:[Gists](statistics/campaigns.apib)
|
||||||
|
|
||||||
# Group Decorations
|
# Group Decorations
|
||||||
|
|
||||||
:[Gists](army-management/decorations.apib)
|
:[Gists](army-management/decorations.apib)
|
||||||
|
@ -50,6 +52,8 @@ FORMAT: 1A
|
||||||
|
|
||||||
# Group Squads
|
# Group Squads
|
||||||
|
|
||||||
|
:[Gists](army-management/squads.apib)
|
||||||
|
|
||||||
# Group Users
|
# Group Users
|
||||||
|
|
||||||
:[Gists](army-management/users.apib)
|
:[Gists](army-management/users.apib)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"_id":{"$oid":"5ab68ceef547ed304064e5f6"},"squad":null,"permission":4,"activated":true,"username":"testuser","secret":"my secret","password":"$2a$10$wvgBbcckHrFu8Ctw8hSPNuFLoBy4sRubioyiK1NabOC0UgYD.KITi","timestamp":{"$date":"2018-03-24T17:37:50.668Z"},"updatedAt":{"$date":"2018-03-24T17:37:50.668Z"},"__v":0}
|
{"_id":{"$oid":"5ab68ceef547ed304064e5f6"},"squad":{"$oid":"5aba54eaeadcce6332c6a774"},"permission":4,"activated":true,"username":"testuser","secret":"my secret","password":"$2a$10$wvgBbcckHrFu8Ctw8hSPNuFLoBy4sRubioyiK1NabOC0UgYD.KITi","timestamp":{"$date":"2018-03-24T17:37:50.668Z"},"updatedAt":{"$date":"2018-03-24T17:37:50.668Z"},"__v":0}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
{"_id":{"$oid":"5abd55ea9e30a76bfef747d6"},"title":"Ein Kessel Buntes","timestamp":{"$date":"2018-03-29T21:08:58.123Z"},"updatedAt":{"$date":"2018-03-29T21:08:58.123Z"},"__v":0}
|
||||||
|
{"_id":{"$oid":"5abd58989e30a76bfef747e6"},"title":"This Is The End","timestamp":{"$date":"2018-03-29T21:20:24.558Z"},"updatedAt":{"$date":"2018-03-29T21:20:24.558Z"},"__v":0}
|
|
@ -1,2 +1,2 @@
|
||||||
{"_id":{"$oid":"5ab68d42f547ed304064e5f7"},"rankLvl":0,"squadId":{"$oid":"5aba54eaeadcce6332c6a774"},"username":"hardiready","updatedAt":{"$date":"2018-03-27T14:28:04.533Z"},"__v":0}
|
|
||||||
{"_id":{"$oid":"5abd4780396bc0487068be0e"},"rankLvl":0,"squadId":null,"username":"KalleK","timestamp":{"$date":"2018-03-29T20:07:28.960Z"},"updatedAt":{"$date":"2018-03-29T20:07:28.960Z"},"__v":0}
|
{"_id":{"$oid":"5abd4780396bc0487068be0e"},"rankLvl":0,"squadId":null,"username":"KalleK","timestamp":{"$date":"2018-03-29T20:07:28.960Z"},"updatedAt":{"$date":"2018-03-29T20:07:28.960Z"},"__v":0}
|
||||||
|
{"_id":{"$oid":"5ab68d42f547ed304064e5f7"},"rankLvl":0,"squadId":{"$oid":"5aba54eaeadcce6332c6a774"},"username":"hardiready","updatedAt":{"$date":"2018-03-27T14:28:04.533Z"},"__v":0}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
asddas
|
|
@ -0,0 +1,33 @@
|
||||||
|
### Get User [GET /campaigns/{id}]
|
||||||
|
|
||||||
|
Get single campaign information
|
||||||
|
|
||||||
|
+ Parameters
|
||||||
|
+ id: `5abd55ea9e30a76bfef747d6` (string, required) - unique id of campaign
|
||||||
|
|
||||||
|
+ Response 200
|
||||||
|
|
||||||
|
+ Attributes (Campaign, fixed-type)
|
||||||
|
|
||||||
|
### Create Campaign [POST /campaigns]
|
||||||
|
|
||||||
|
Create a new campaign
|
||||||
|
|
||||||
|
+ Request Create new army member (application/json)
|
||||||
|
|
||||||
|
+ Attributes
|
||||||
|
+ title: `Return To Kessel In A Schmelz` (string, required) - display name of the campaign
|
||||||
|
|
||||||
|
+ Response 201
|
||||||
|
|
||||||
|
+ Attributes (Campaign, fixed-type)
|
||||||
|
|
||||||
|
### Delete Campaign [DELETE /campaigns/{id}]
|
||||||
|
|
||||||
|
Delete a campaign
|
||||||
|
|
||||||
|
+ Parameters
|
||||||
|
+ id: `5abd58989e30a76bfef747e6` (string, required) - unique id of campaign
|
||||||
|
|
||||||
|
+ Response 204
|
||||||
|
|
Loading…
Reference in New Issue