@@ -21,7 +21,7 @@ Welcome to the generated API reference.
2121<!-- END_INFO -->
2222
2323#general
24- <!-- START_0bef4e738c9d6720ad43b062015d1078 -->
24+ <!-- START_264ee15c728df32e7ca6eedce5e42dcb -->
2525## Example title.
2626
2727This will be the long description.
@@ -30,18 +30,22 @@ It can also be multiple lines long.
3030> Example request:
3131
3232``` bash
33- curl -X GET -G " http://localhost/api/test" \
34- -H " Accept: application/json"
33+ curl -X GET -G " http://localhost/api/withDescription" \
34+ -H " Accept: application/json" \
35+ -H " Authorization: customAuthToken" \
36+ -H " Custom-Header: NotSoCustom"
3537```
3638
3739``` javascript
3840var settings = {
3941 " async" : true ,
4042 " crossDomain" : true ,
41- " url" : " http://localhost/api/test " ,
43+ " url" : " http://localhost/api/withDescription " ,
4244 " method" : " GET" ,
4345 " headers" : {
4446 " accept" : " application/json" ,
47+ " Authorization" : " customAuthToken" ,
48+ " Custom-Header" : " NotSoCustom" ,
4549 }
4650}
4751
5761```
5862
5963### HTTP Request
60- ` GET api/test `
64+ ` GET api/withDescription `
6165
6266
63- <!-- END_0bef4e738c9d6720ad43b062015d1078 -->
67+ <!-- END_264ee15c728df32e7ca6eedce5e42dcb -->
6468
65- <!-- START_39a6bfda1d6a0c4a5447f51b62557456 -->
66- ## api/responseTag
69+ <!-- START_9cedd363be06f5512f9e844b100fcc9d -->
70+ ## api/withResponseTag
6771
6872> Example request:
6973
7074``` bash
71- curl -X GET -G " http://localhost/api/responseTag" \
72- -H " Accept: application/json"
75+ curl -X GET -G " http://localhost/api/withResponseTag" \
76+ -H " Accept: application/json" \
77+ -H " Authorization: customAuthToken" \
78+ -H " Custom-Header: NotSoCustom"
7379```
7480
7581``` javascript
7682var settings = {
7783 " async" : true ,
7884 " crossDomain" : true ,
79- " url" : " http://localhost/api/responseTag " ,
85+ " url" : " http://localhost/api/withResponseTag " ,
8086 " method" : " GET" ,
8187 " headers" : {
8288 " accept" : " application/json" ,
89+ " Authorization" : " customAuthToken" ,
90+ " Custom-Header" : " NotSoCustom" ,
8391 }
8492}
8593
@@ -101,9 +109,75 @@ $.ajax(settings).done(function (response) {
101109```
102110
103111### HTTP Request
104- ` GET api/responseTag `
112+ ` GET api/withResponseTag `
105113
106114
107- <!-- END_39a6bfda1d6a0c4a5447f51b62557456 -->
115+ <!-- END_9cedd363be06f5512f9e844b100fcc9d -->
116+
117+ <!-- START_a25cb3b490fa579d7d77b386bbb7ec03 -->
118+ ## api/withBodyParameters
119+
120+ > Example request:
121+
122+ ``` bash
123+ curl -X GET -G " http://localhost/api/withBodyParameters" \
124+ -H " Accept: application/json" \
125+ -H " Authorization: customAuthToken" \
126+ -H " Custom-Header: NotSoCustom" \
127+ -d " user_id" =14 \
128+ -d " room_id" =KHEnlMeSksAYgNtw \
129+ -d " forever" =1 \
130+ -d " another_one" =4919.5 \
131+ -d " yet_another_param" ={} \
132+ -d " even_more_param" =[]
133+ ```
134+
135+ ``` javascript
136+ var settings = {
137+ " async" : true ,
138+ " crossDomain" : true ,
139+ " url" : " http://localhost/api/withBodyParameters" ,
140+ " method" : " GET" ,
141+ " data" : {
142+ " user_id" : 14 ,
143+ " room_id" : " KHEnlMeSksAYgNtw" ,
144+ " forever" : true ,
145+ " another_one" : 4919.5 ,
146+ " yet_another_param" : " {}" ,
147+ " even_more_param" : " []"
148+ },
149+ " headers" : {
150+ " accept" : " application/json" ,
151+ " Authorization" : " customAuthToken" ,
152+ " Custom-Header" : " NotSoCustom" ,
153+ }
154+ }
155+
156+ $ .ajax (settings).done (function (response ) {
157+ console .log (response);
158+ });
159+ ```
160+
161+ > Example response:
162+
163+ ``` json
164+ null
165+ ```
166+
167+ ### HTTP Request
168+ ` GET api/withBodyParameters `
169+
170+ #### Parameters
171+
172+ Parameter | Type | Status | Description
173+ --------- | ------- | ------- | ------- | -----------
174+ user_id | integer | required | The id of the user.
175+ room_id | string | optional | The id of the room.
176+ forever | boolean | optional | Whether to ban the user forever.
177+ another_one | number | optional | Just need something here.
178+ yet_another_param | object | required |
179+ even_more_param | array | optional |
180+
181+ <!-- END_a25cb3b490fa579d7d77b386bbb7ec03 -->
108182
109183
0 commit comments