@@ -197,6 +197,65 @@ Parameter | Type | Status | Description
197197
198198<!-- END_a25cb3b490fa579d7d77b386bbb7ec03 -->
199199
200+ <!-- START_5c545aa7f913d84b23ac4cfefc1de659 -->
201+ ## api/withQueryParameters
202+ > Example request:
203+
204+ ``` bash
205+ curl -X GET -G " http://localhost/api/withQueryParameters?location_id=consequatur&user_id=me&page=4&filters=consequatur&url_encoded=%2B+%5B%5D%26%3D" \
206+ -H " Authorization: customAuthToken" \
207+ -H " Custom-Header: NotSoCustom"
208+ ```
209+
210+ ``` javascript
211+ const url = new URL (" http://localhost/api/withQueryParameters" );
212+
213+ let params = {
214+ " location_id" : " consequatur" ,
215+ " user_id" : " me" ,
216+ " page" : " 4" ,
217+ " filters" : " consequatur" ,
218+ " url_encoded" : " + []&=" ,
219+ };
220+ Object .keys (params).forEach (key => url .searchParams .append (key, params[key]));
221+
222+ let headers = {
223+ " Authorization" : " customAuthToken" ,
224+ " Custom-Header" : " NotSoCustom" ,
225+ " Accept" : " application/json" ,
226+ " Content-Type" : " application/json" ,
227+ }
228+
229+ fetch (url, {
230+ method: " GET" ,
231+ headers: headers,
232+ })
233+ .then (response => response .json ())
234+ .then (json => console .log (json));
235+ ```
236+
237+
238+ > Example response (200):
239+
240+ ``` json
241+ null
242+ ```
243+
244+ ### HTTP Request
245+ ` GET api/withQueryParameters `
246+
247+ #### Query Parameters
248+
249+ Parameter | Status | Description
250+ --------- | ------- | ------- | -----------
251+ location_id | required | The id of the location.
252+ user_id | required | The id of the user.
253+ page | required | The page number.
254+ filters | optional | The filters.
255+ url_encoded | optional | Used for testing that URL parameters will be URL-encoded where needed.
256+
257+ <!-- END_5c545aa7f913d84b23ac4cfefc1de659 -->
258+
200259<!-- START_5c08cc4d72b6e5830f6814c64086e197 -->
201260## api/withAuthTag
202261<br ><small style =" padding : 1px 9px 2px ;font-weight : bold ;white-space : nowrap ;color : #ffffff ;-webkit-border-radius : 9px ;-moz-border-radius : 9px ;border-radius : 9px ;background-color : #3a87ad ;" >Requires authentication</small >
0 commit comments