@@ -21,7 +21,8 @@ public async Task<PersonCollectionResponseDocument> GetPersonCollectionAsync(
21
21
)
22
22
{
23
23
var request = new RequestBuilder ( HttpMethod . Get , "api/people" )
24
- . SetQueryParameter ( "query" , query )
24
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
25
+ //.SetQueryParameter("query", query)
25
26
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
26
27
. Build ( ) ;
27
28
@@ -49,7 +50,8 @@ public async Task<PersonPrimaryResponseDocument> PostPersonAsync(
49
50
ArgumentNullException . ThrowIfNull ( input , nameof ( input ) ) ;
50
51
51
52
var request = new RequestBuilder ( HttpMethod . Post , "api/people" )
52
- . SetQueryParameter ( "query" , query )
53
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
54
+ //.SetQueryParameter("query", query)
53
55
. SetContentAsJson ( input , _jsonSerializerOptions )
54
56
. Build ( ) ;
55
57
@@ -76,7 +78,8 @@ public async Task HeadPersonCollectionAsync(
76
78
)
77
79
{
78
80
var request = new RequestBuilder ( HttpMethod . Head , "api/people" )
79
- . SetQueryParameter ( "query" , query )
81
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
82
+ //.SetQueryParameter("query", query)
80
83
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
81
84
. Build ( ) ;
82
85
@@ -100,7 +103,8 @@ public async Task<PersonPrimaryResponseDocument> GetPersonAsync(
100
103
101
104
var request = new RequestBuilder ( HttpMethod . Get , "api/people/{id}" )
102
105
. SetPathParameter ( "id" , id )
103
- . SetQueryParameter ( "query" , query )
106
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
107
+ //.SetQueryParameter("query", query)
104
108
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
105
109
. Build ( ) ;
106
110
@@ -132,7 +136,8 @@ public async Task<PersonPrimaryResponseDocument> PatchPersonAsync(
132
136
133
137
var request = new RequestBuilder ( HttpMethod . Patch , "api/people/{id}" )
134
138
. SetPathParameter ( "id" , id )
135
- . SetQueryParameter ( "query" , query )
139
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
140
+ //.SetQueryParameter("query", query)
136
141
. SetContentAsJson ( input , _jsonSerializerOptions )
137
142
. Build ( ) ;
138
143
@@ -179,7 +184,8 @@ public async Task HeadPersonAsync(
179
184
180
185
var request = new RequestBuilder ( HttpMethod . Head , "api/people/{id}" )
181
186
. SetPathParameter ( "id" , id )
182
- . SetQueryParameter ( "query" , query )
187
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
188
+ //.SetQueryParameter("query", query)
183
189
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
184
190
. Build ( ) ;
185
191
@@ -203,7 +209,8 @@ public async Task<TodoItemCollectionResponseDocument> GetPersonAssignedTodoItems
203
209
204
210
var request = new RequestBuilder ( HttpMethod . Get , "api/people/{id}/assignedTodoItems" )
205
211
. SetPathParameter ( "id" , id )
206
- . SetQueryParameter ( "query" , query )
212
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
213
+ //.SetQueryParameter("query", query)
207
214
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
208
215
. Build ( ) ;
209
216
@@ -235,7 +242,8 @@ public async Task HeadPersonAssignedTodoItemsAsync(
235
242
236
243
var request = new RequestBuilder ( HttpMethod . Head , "api/people/{id}/assignedTodoItems" )
237
244
. SetPathParameter ( "id" , id )
238
- . SetQueryParameter ( "query" , query )
245
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
246
+ //.SetQueryParameter("query", query)
239
247
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
240
248
. Build ( ) ;
241
249
@@ -262,7 +270,8 @@ public async Task<TodoItemIdentifierCollectionResponseDocument> GetPersonAssigne
262
270
"api/people/{id}/relationships/assignedTodoItems"
263
271
)
264
272
. SetPathParameter ( "id" , id )
265
- . SetQueryParameter ( "query" , query )
273
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
274
+ //.SetQueryParameter("query", query)
266
275
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
267
276
. Build ( ) ;
268
277
@@ -372,7 +381,8 @@ public async Task HeadPersonAssignedTodoItemsRelationshipAsync(
372
381
"api/people/{id}/relationships/assignedTodoItems"
373
382
)
374
383
. SetPathParameter ( "id" , id )
375
- . SetQueryParameter ( "query" , query )
384
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
385
+ //.SetQueryParameter("query", query)
376
386
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
377
387
. Build ( ) ;
378
388
@@ -396,7 +406,8 @@ public async Task<TodoItemCollectionResponseDocument> GetPersonOwnedTodoItemsAsy
396
406
397
407
var request = new RequestBuilder ( HttpMethod . Get , "api/people/{id}/ownedTodoItems" )
398
408
. SetPathParameter ( "id" , id )
399
- . SetQueryParameter ( "query" , query )
409
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
410
+ //.SetQueryParameter("query", query)
400
411
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
401
412
. Build ( ) ;
402
413
@@ -428,7 +439,8 @@ public async Task HeadPersonOwnedTodoItemsAsync(
428
439
429
440
var request = new RequestBuilder ( HttpMethod . Head , "api/people/{id}/ownedTodoItems" )
430
441
. SetPathParameter ( "id" , id )
431
- . SetQueryParameter ( "query" , query )
442
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
443
+ //.SetQueryParameter("query", query)
432
444
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
433
445
. Build ( ) ;
434
446
@@ -455,7 +467,8 @@ public async Task<TodoItemIdentifierCollectionResponseDocument> GetPersonOwnedTo
455
467
"api/people/{id}/relationships/ownedTodoItems"
456
468
)
457
469
. SetPathParameter ( "id" , id )
458
- . SetQueryParameter ( "query" , query )
470
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
471
+ //.SetQueryParameter("query", query)
459
472
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
460
473
. Build ( ) ;
461
474
@@ -565,7 +578,8 @@ public async Task HeadPersonOwnedTodoItemsRelationshipAsync(
565
578
"api/people/{id}/relationships/ownedTodoItems"
566
579
)
567
580
. SetPathParameter ( "id" , id )
568
- . SetQueryParameter ( "query" , query )
581
+ // Commented out to workaround bug: It sends ?query= instead of key-value pairs, resulting in HTTP 400.
582
+ //.SetQueryParameter("query", query)
569
583
. SetOptionalHeader ( "If-None-Match" , ifNoneMatch )
570
584
. Build ( ) ;
571
585
0 commit comments