Add count response header check for apib GET users

pull/32/head
Florian Hartwich 2018-03-27 16:30:58 +02:00
parent 0cffa96b41
commit 7f1704387f
4 changed files with 9 additions and 3 deletions

View File

@ -23,7 +23,11 @@ Get single army member information
+ Response 200 + Response 200
+ Attributes (array[User]) + Headers
X-Total-Count: 1
+ Attributes (array[User], fixed-type)
### GET User [GET /users/{id}] ### GET User [GET /users/{id}]
@ -35,4 +39,4 @@ Get single army member information
+ Response 200 + Response 200
+ Attributes (User) + Attributes (User, fixed-type)

View File

@ -0,0 +1 @@
{"_id":{"$oid":"5aba5504eadcce6332c6a775"},"name":"Gefreiter","fraction":"BLUFOR","level":0,"timestamp":{"$date":"2018-03-27T14:28:20.948Z"},"updatedAt":{"$date":"2018-03-27T14:28:20.948Z"},"__v":0}

View File

@ -0,0 +1 @@
{"_id":{"$oid":"5aba54eaeadcce6332c6a774"},"sortingNumber":0,"name":"Alpha","fraction":"BLUFOR","timestamp":{"$date":"2018-03-27T14:27:54.399Z"},"updatedAt":{"$date":"2018-03-27T14:27:54.399Z"},"__v":0}

View File

@ -1 +1 @@
{"_id":{"$oid":"5ab68d42f547ed304064e5f7"},"rankLvl":0,"squadId":null,"username":"user1","timestamp":{"$date":"2018-03-24T17:39:14.841Z"},"updatedAt":{"$date":"2018-03-24T17:39:14.841Z"},"__v":0} {"_id":{"$oid":"5ab68d42f547ed304064e5f7"},"rankLvl":0,"squadId":{"$oid":"5aba54eaeadcce6332c6a774"},"username":"hardiready","updatedAt":{"$date":"2018-03-27T14:28:04.533Z"},"__v":0}