@@ -0,0 +1,869 @@
1+## GET /posts/:id
2+
3+### Captures:
4+
5+- *id*: The id of the entity you want to query.
6+
7+### Response:
8+
9+- Status code 200
10+- Headers: []
11+
12+- Supported content types are:
13+
14+ - `application/json`
15+
16+- Example (`application/json`):
17+
18+```javascript
19+{
20+ "postBody": "This is the post body",
21+ "postAuthor": 4,
22+ "postId": 1
23+}
24+```
25+
26+- Example (`application/json`):
27+
28+```javascript
29+{
30+ "postBody": "This is another post body",
31+ "postAuthor": 4,
32+ "postId": 1
33+}
34+```
35+
36+- Example (`application/json`):
37+
38+```javascript
39+{
40+ "postBody": "This is the post body",
41+ "postAuthor": 7,
42+ "postId": 1
43+}
44+```
45+
46+- Example (`application/json`):
47+
48+```javascript
49+{
50+ "postBody": "This is another post body",
51+ "postAuthor": 7,
52+ "postId": 1
53+}
54+```
55+
56+- Example (`application/json`):
57+
58+```javascript
59+{
60+ "postBody": "This is the post body",
61+ "postAuthor": 92,
62+ "postId": 1
63+}
64+```
65+
66+## GET /posts/all
67+
68+### Response:
69+
70+- Status code 200
71+- Headers: []
72+
73+- Supported content types are:
74+
75+ - `application/json`
76+
77+- Example (`application/json`):
78+
79+```javascript
80+{
81+ "token": 1,
82+ "reponse": [
83+ {
84+ "postBody": "This is the post body",
85+ "postAuthor": 4,
86+ "postId": 1
87+ },
88+ {
89+ "postBody": "This is another post body",
90+ "postAuthor": 4,
91+ "postId": 1
92+ },
93+ {
94+ "postBody": "This is the post body",
95+ "postAuthor": 7,
96+ "postId": 1
97+ },
98+ {
99+ "postBody": "This is another post body",
100+ "postAuthor": 7,
101+ "postId": 1
102+ },
103+ {
104+ "postBody": "This is the post body",
105+ "postAuthor": 92,
106+ "postId": 1
107+ },
108+ {
109+ "postBody": "This is another post body",
110+ "postAuthor": 92,
111+ "postId": 1
112+ },
113+ {
114+ "postBody": "This is the post body",
115+ "postAuthor": 4,
116+ "postId": 4
117+ },
118+ {
119+ "postBody": "This is another post body",
120+ "postAuthor": 4,
121+ "postId": 4
122+ },
123+ {
124+ "postBody": "This is the post body",
125+ "postAuthor": 7,
126+ "postId": 4
127+ },
128+ {
129+ "postBody": "This is another post body",
130+ "postAuthor": 7,
131+ "postId": 4
132+ },
133+ {
134+ "postBody": "This is the post body",
135+ "postAuthor": 92,
136+ "postId": 4
137+ },
138+ {
139+ "postBody": "This is another post body",
140+ "postAuthor": 92,
141+ "postId": 4
142+ },
143+ {
144+ "postBody": "This is the post body",
145+ "postAuthor": 4,
146+ "postId": 7
147+ },
148+ {
149+ "postBody": "This is another post body",
150+ "postAuthor": 4,
151+ "postId": 7
152+ },
153+ {
154+ "postBody": "This is the post body",
155+ "postAuthor": 7,
156+ "postId": 7
157+ },
158+ {
159+ "postBody": "This is another post body",
160+ "postAuthor": 7,
161+ "postId": 7
162+ },
163+ {
164+ "postBody": "This is the post body",
165+ "postAuthor": 92,
166+ "postId": 7
167+ },
168+ {
169+ "postBody": "This is another post body",
170+ "postAuthor": 92,
171+ "postId": 7
172+ },
173+ {
174+ "postBody": "This is the post body",
175+ "postAuthor": 4,
176+ "postId": 194
177+ },
178+ {
179+ "postBody": "This is another post body",
180+ "postAuthor": 4,
181+ "postId": 194
182+ },
183+ {
184+ "postBody": "This is the post body",
185+ "postAuthor": 7,
186+ "postId": 194
187+ },
188+ {
189+ "postBody": "This is another post body",
190+ "postAuthor": 7,
191+ "postId": 194
192+ },
193+ {
194+ "postBody": "This is the post body",
195+ "postAuthor": 92,
196+ "postId": 194
197+ },
198+ {
199+ "postBody": "This is another post body",
200+ "postAuthor": 92,
201+ "postId": 194
202+ }
203+ ]
204+}
205+```
206+
207+- Example (`application/json`):
208+
209+```javascript
210+{
211+ "token": 46,
212+ "reponse": [
213+ {
214+ "postBody": "This is the post body",
215+ "postAuthor": 4,
216+ "postId": 1
217+ },
218+ {
219+ "postBody": "This is another post body",
220+ "postAuthor": 4,
221+ "postId": 1
222+ },
223+ {
224+ "postBody": "This is the post body",
225+ "postAuthor": 7,
226+ "postId": 1
227+ },
228+ {
229+ "postBody": "This is another post body",
230+ "postAuthor": 7,
231+ "postId": 1
232+ },
233+ {
234+ "postBody": "This is the post body",
235+ "postAuthor": 92,
236+ "postId": 1
237+ },
238+ {
239+ "postBody": "This is another post body",
240+ "postAuthor": 92,
241+ "postId": 1
242+ },
243+ {
244+ "postBody": "This is the post body",
245+ "postAuthor": 4,
246+ "postId": 4
247+ },
248+ {
249+ "postBody": "This is another post body",
250+ "postAuthor": 4,
251+ "postId": 4
252+ },
253+ {
254+ "postBody": "This is the post body",
255+ "postAuthor": 7,
256+ "postId": 4
257+ },
258+ {
259+ "postBody": "This is another post body",
260+ "postAuthor": 7,
261+ "postId": 4
262+ },
263+ {
264+ "postBody": "This is the post body",
265+ "postAuthor": 92,
266+ "postId": 4
267+ },
268+ {
269+ "postBody": "This is another post body",
270+ "postAuthor": 92,
271+ "postId": 4
272+ },
273+ {
274+ "postBody": "This is the post body",
275+ "postAuthor": 4,
276+ "postId": 7
277+ },
278+ {
279+ "postBody": "This is another post body",
280+ "postAuthor": 4,
281+ "postId": 7
282+ },
283+ {
284+ "postBody": "This is the post body",
285+ "postAuthor": 7,
286+ "postId": 7
287+ },
288+ {
289+ "postBody": "This is another post body",
290+ "postAuthor": 7,
291+ "postId": 7
292+ },
293+ {
294+ "postBody": "This is the post body",
295+ "postAuthor": 92,
296+ "postId": 7
297+ },
298+ {
299+ "postBody": "This is another post body",
300+ "postAuthor": 92,
301+ "postId": 7
302+ },
303+ {
304+ "postBody": "This is the post body",
305+ "postAuthor": 4,
306+ "postId": 194
307+ },
308+ {
309+ "postBody": "This is another post body",
310+ "postAuthor": 4,
311+ "postId": 194
312+ },
313+ {
314+ "postBody": "This is the post body",
315+ "postAuthor": 7,
316+ "postId": 194
317+ },
318+ {
319+ "postBody": "This is another post body",
320+ "postAuthor": 7,
321+ "postId": 194
322+ },
323+ {
324+ "postBody": "This is the post body",
325+ "postAuthor": 92,
326+ "postId": 194
327+ },
328+ {
329+ "postBody": "This is another post body",
330+ "postAuthor": 92,
331+ "postId": 194
332+ }
333+ ]
334+}
335+```
336+
337+- Example (`application/json`):
338+
339+```javascript
340+{
341+ "token": 193,
342+ "reponse": [
343+ {
344+ "postBody": "This is the post body",
345+ "postAuthor": 4,
346+ "postId": 1
347+ },
348+ {
349+ "postBody": "This is another post body",
350+ "postAuthor": 4,
351+ "postId": 1
352+ },
353+ {
354+ "postBody": "This is the post body",
355+ "postAuthor": 7,
356+ "postId": 1
357+ },
358+ {
359+ "postBody": "This is another post body",
360+ "postAuthor": 7,
361+ "postId": 1
362+ },
363+ {
364+ "postBody": "This is the post body",
365+ "postAuthor": 92,
366+ "postId": 1
367+ },
368+ {
369+ "postBody": "This is another post body",
370+ "postAuthor": 92,
371+ "postId": 1
372+ },
373+ {
374+ "postBody": "This is the post body",
375+ "postAuthor": 4,
376+ "postId": 4
377+ },
378+ {
379+ "postBody": "This is another post body",
380+ "postAuthor": 4,
381+ "postId": 4
382+ },
383+ {
384+ "postBody": "This is the post body",
385+ "postAuthor": 7,
386+ "postId": 4
387+ },
388+ {
389+ "postBody": "This is another post body",
390+ "postAuthor": 7,
391+ "postId": 4
392+ },
393+ {
394+ "postBody": "This is the post body",
395+ "postAuthor": 92,
396+ "postId": 4
397+ },
398+ {
399+ "postBody": "This is another post body",
400+ "postAuthor": 92,
401+ "postId": 4
402+ },
403+ {
404+ "postBody": "This is the post body",
405+ "postAuthor": 4,
406+ "postId": 7
407+ },
408+ {
409+ "postBody": "This is another post body",
410+ "postAuthor": 4,
411+ "postId": 7
412+ },
413+ {
414+ "postBody": "This is the post body",
415+ "postAuthor": 7,
416+ "postId": 7
417+ },
418+ {
419+ "postBody": "This is another post body",
420+ "postAuthor": 7,
421+ "postId": 7
422+ },
423+ {
424+ "postBody": "This is the post body",
425+ "postAuthor": 92,
426+ "postId": 7
427+ },
428+ {
429+ "postBody": "This is another post body",
430+ "postAuthor": 92,
431+ "postId": 7
432+ },
433+ {
434+ "postBody": "This is the post body",
435+ "postAuthor": 4,
436+ "postId": 194
437+ },
438+ {
439+ "postBody": "This is another post body",
440+ "postAuthor": 4,
441+ "postId": 194
442+ },
443+ {
444+ "postBody": "This is the post body",
445+ "postAuthor": 7,
446+ "postId": 194
447+ },
448+ {
449+ "postBody": "This is another post body",
450+ "postAuthor": 7,
451+ "postId": 194
452+ },
453+ {
454+ "postBody": "This is the post body",
455+ "postAuthor": 92,
456+ "postId": 194
457+ },
458+ {
459+ "postBody": "This is another post body",
460+ "postAuthor": 92,
461+ "postId": 194
462+ }
463+ ]
464+}
465+```
466+
467+- Example (`application/json`):
468+
469+```javascript
470+{
471+ "token": 7,
472+ "reponse": [
473+ {
474+ "postBody": "This is the post body",
475+ "postAuthor": 4,
476+ "postId": 1
477+ },
478+ {
479+ "postBody": "This is another post body",
480+ "postAuthor": 4,
481+ "postId": 1
482+ },
483+ {
484+ "postBody": "This is the post body",
485+ "postAuthor": 7,
486+ "postId": 1
487+ },
488+ {
489+ "postBody": "This is another post body",
490+ "postAuthor": 7,
491+ "postId": 1
492+ },
493+ {
494+ "postBody": "This is the post body",
495+ "postAuthor": 92,
496+ "postId": 1
497+ },
498+ {
499+ "postBody": "This is another post body",
500+ "postAuthor": 92,
501+ "postId": 1
502+ },
503+ {
504+ "postBody": "This is the post body",
505+ "postAuthor": 4,
506+ "postId": 4
507+ },
508+ {
509+ "postBody": "This is another post body",
510+ "postAuthor": 4,
511+ "postId": 4
512+ },
513+ {
514+ "postBody": "This is the post body",
515+ "postAuthor": 7,
516+ "postId": 4
517+ },
518+ {
519+ "postBody": "This is another post body",
520+ "postAuthor": 7,
521+ "postId": 4
522+ },
523+ {
524+ "postBody": "This is the post body",
525+ "postAuthor": 92,
526+ "postId": 4
527+ },
528+ {
529+ "postBody": "This is another post body",
530+ "postAuthor": 92,
531+ "postId": 4
532+ },
533+ {
534+ "postBody": "This is the post body",
535+ "postAuthor": 4,
536+ "postId": 7
537+ },
538+ {
539+ "postBody": "This is another post body",
540+ "postAuthor": 4,
541+ "postId": 7
542+ },
543+ {
544+ "postBody": "This is the post body",
545+ "postAuthor": 7,
546+ "postId": 7
547+ },
548+ {
549+ "postBody": "This is another post body",
550+ "postAuthor": 7,
551+ "postId": 7
552+ },
553+ {
554+ "postBody": "This is the post body",
555+ "postAuthor": 92,
556+ "postId": 7
557+ },
558+ {
559+ "postBody": "This is another post body",
560+ "postAuthor": 92,
561+ "postId": 7
562+ },
563+ {
564+ "postBody": "This is the post body",
565+ "postAuthor": 4,
566+ "postId": 194
567+ },
568+ {
569+ "postBody": "This is another post body",
570+ "postAuthor": 4,
571+ "postId": 194
572+ },
573+ {
574+ "postBody": "This is the post body",
575+ "postAuthor": 7,
576+ "postId": 194
577+ },
578+ {
579+ "postBody": "This is another post body",
580+ "postAuthor": 7,
581+ "postId": 194
582+ },
583+ {
584+ "postBody": "This is the post body",
585+ "postAuthor": 92,
586+ "postId": 194
587+ },
588+ {
589+ "postBody": "This is another post body",
590+ "postAuthor": 92,
591+ "postId": 194
592+ }
593+ ]
594+}
595+```
596+
597+## GET /posts/subscribe/:token
598+
599+### title
600+
601+not title
602+
603+### Captures:
604+
605+- *token*: The token, recieved wit the previuos request
606+
607+### Response:
608+
609+- Status code 200
610+- Headers: []
611+
612+- No response body
613+
614+## GET /users/:id
615+
616+### Captures:
617+
618+- *id*: The id of the entity you want to query.
619+
620+### Response:
621+
622+- Status code 200
623+- Headers: []
624+
625+- Supported content types are:
626+
627+ - `application/json`
628+
629+- Example (`application/json`):
630+
631+```javascript
632+{
633+ "userName": {
634+ "secondName": "Leonidovich",
635+ "firstName": "Seva"
636+ },
637+ "userId": 1
638+}
639+```
640+
641+- Example (`application/json`):
642+
643+```javascript
644+{
645+ "userName": {
646+ "secondName": "Barovich",
647+ "firstName": "Foo"
648+ },
649+ "userId": 42
650+}
651+```
652+
653+- Example (`application/json`):
654+
655+```javascript
656+{
657+ "userName": {
658+ "secondName": "Fooovich",
659+ "firstName": "Bar"
660+ },
661+ "userId": 69
662+}
663+```
664+
665+- Example (`application/json`):
666+
667+```javascript
668+{
669+ "userName": {
670+ "secondName": "Quixovich",
671+ "firstName": "Qux"
672+ },
673+ "userId": 8
674+}
675+```
676+
677+## GET /users/add/:first/:second
678+
679+### Captures:
680+
681+- *first*: The first name of the user.
682+- *second*: The second name of the user.
683+
684+### Response:
685+
686+- Status code 200
687+- Headers: []
688+
689+- Supported content types are:
690+
691+ - `application/json`
692+
693+- Example (`application/json`):
694+
695+```javascript
696+[]
697+```
698+
699+- Example (`application/json`):
700+
701+```javascript
702+[
703+ {
704+ "userName": {
705+ "secondName": "Leonidovich",
706+ "firstName": "Seva"
707+ },
708+ "userId": 1
709+ }
710+]
711+```
712+
713+- Example (`application/json`):
714+
715+```javascript
716+[
717+ {
718+ "userName": {
719+ "secondName": "Leonidovich",
720+ "firstName": "Seva"
721+ },
722+ "userId": 1
723+ },
724+ {
725+ "userName": {
726+ "secondName": "Leonidovich",
727+ "firstName": "Seva"
728+ },
729+ "userId": 1
730+ }
731+]
732+```
733+
734+- Example (`application/json`):
735+
736+```javascript
737+[
738+ {
739+ "userName": {
740+ "secondName": "Barovich",
741+ "firstName": "Foo"
742+ },
743+ "userId": 42
744+ }
745+]
746+```
747+
748+- Example (`application/json`):
749+
750+```javascript
751+[
752+ {
753+ "userName": {
754+ "secondName": "Leonidovich",
755+ "firstName": "Seva"
756+ },
757+ "userId": 1
758+ },
759+ {
760+ "userName": {
761+ "secondName": "Leonidovich",
762+ "firstName": "Seva"
763+ },
764+ "userId": 1
765+ },
766+ {
767+ "userName": {
768+ "secondName": "Leonidovich",
769+ "firstName": "Seva"
770+ },
771+ "userId": 1
772+ }
773+]
774+```
775+
776+## GET /users/all
777+
778+### Response:
779+
780+- Status code 200
781+- Headers: []
782+
783+- Supported content types are:
784+
785+ - `application/json`
786+
787+- Example (`application/json`):
788+
789+```javascript
790+[]
791+```
792+
793+- Example (`application/json`):
794+
795+```javascript
796+[
797+ {
798+ "userName": {
799+ "secondName": "Leonidovich",
800+ "firstName": "Seva"
801+ },
802+ "userId": 1
803+ }
804+]
805+```
806+
807+- Example (`application/json`):
808+
809+```javascript
810+[
811+ {
812+ "userName": {
813+ "secondName": "Leonidovich",
814+ "firstName": "Seva"
815+ },
816+ "userId": 1
817+ },
818+ {
819+ "userName": {
820+ "secondName": "Leonidovich",
821+ "firstName": "Seva"
822+ },
823+ "userId": 1
824+ }
825+]
826+```
827+
828+- Example (`application/json`):
829+
830+```javascript
831+[
832+ {
833+ "userName": {
834+ "secondName": "Barovich",
835+ "firstName": "Foo"
836+ },
837+ "userId": 42
838+ }
839+]
840+```
841+
842+- Example (`application/json`):
843+
844+```javascript
845+[
846+ {
847+ "userName": {
848+ "secondName": "Leonidovich",
849+ "firstName": "Seva"
850+ },
851+ "userId": 1
852+ },
853+ {
854+ "userName": {
855+ "secondName": "Leonidovich",
856+ "firstName": "Seva"
857+ },
858+ "userId": 1
859+ },
860+ {
861+ "userName": {
862+ "secondName": "Leonidovich",
863+ "firstName": "Seva"
864+ },
865+ "userId": 1
866+ }
867+]
868+```
869+