lucius-mcp 0.1.0__py3-none-any.whl → 0.2.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/METADATA +23 -2
  2. {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/RECORD +29 -14
  3. src/client/client.py +105 -0
  4. src/client/generated/README.md +65 -7
  5. src/client/generated/__init__.py +16 -0
  6. src/client/generated/api/__init__.py +8 -0
  7. src/client/generated/api/custom_field_controller_api.py +2617 -0
  8. src/client/generated/api/custom_field_project_controller_api.py +2337 -0
  9. src/client/generated/api/custom_field_project_controller_v2_api.py +659 -0
  10. src/client/generated/api/custom_field_schema_controller_api.py +1710 -0
  11. src/client/generated/api/custom_field_value_controller_api.py +3106 -0
  12. src/client/generated/api/custom_field_value_project_controller_api.py +1835 -0
  13. src/client/generated/api/project_controller_api.py +2986 -0
  14. src/client/generated/api/status_controller_api.py +1780 -0
  15. src/client/generated/docs/CustomFieldControllerApi.md +616 -0
  16. src/client/generated/docs/CustomFieldProjectControllerApi.md +554 -0
  17. src/client/generated/docs/CustomFieldProjectControllerV2Api.md +149 -0
  18. src/client/generated/docs/CustomFieldSchemaControllerApi.md +421 -0
  19. src/client/generated/docs/CustomFieldValueControllerApi.md +723 -0
  20. src/client/generated/docs/CustomFieldValueProjectControllerApi.md +430 -0
  21. src/client/generated/docs/LaunchControllerApi.md +2 -2
  22. src/client/generated/docs/ProjectControllerApi.md +717 -0
  23. src/client/generated/docs/StatusControllerApi.md +429 -0
  24. src/services/test_case_service.py +92 -33
  25. src/tools/__init__.py +3 -0
  26. src/tools/get_custom_fields.py +48 -0
  27. src/client/refactor-hotspots.md +0 -53
  28. src/client/refactor-plan.md +0 -78
  29. {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/WHEEL +0 -0
  30. {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/entry_points.txt +0 -0
  31. {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,554 @@
1
+ # src.client.generated.CustomFieldProjectControllerApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**add2**](CustomFieldProjectControllerApi.md#add2) | **POST** /api/cfproject/add | Add custom field to projects
8
+ [**add_to_project**](CustomFieldProjectControllerApi.md#add_to_project) | **POST** /api/cfproject/add-to-project | Add custom fields to project
9
+ [**cf_delta1**](CustomFieldProjectControllerApi.md#cf_delta1) | **POST** /api/cfproject/delta | Find missing custom fields
10
+ [**find_one45**](CustomFieldProjectControllerApi.md#find_one45) | **GET** /api/cfproject |
11
+ [**find_projects_by_custom_field**](CustomFieldProjectControllerApi.md#find_projects_by_custom_field) | **GET** /api/cfproject/in-projects | Find projects that use specified custom field
12
+ [**remove4**](CustomFieldProjectControllerApi.md#remove4) | **DELETE** /api/cfproject/remove | Remove custom field from project
13
+ [**set_default**](CustomFieldProjectControllerApi.md#set_default) | **POST** /api/cfproject/default | Deprecated. Use PATCH /api/project/{projectId}/cf/{cfId} instead
14
+ [**set_required**](CustomFieldProjectControllerApi.md#set_required) | **POST** /api/cfproject/required | Deprecated. Use PATCH /api/project/{projectId}/cf/{cfId} instead
15
+
16
+
17
+ # **add2**
18
+ > add2(custom_field_id, list_selection_dto)
19
+
20
+ Add custom field to projects
21
+
22
+ ### Example
23
+
24
+
25
+ ```python
26
+ import src.client.generated
27
+ from src.client.generated.models.list_selection_dto import ListSelectionDto
28
+ from src.client.generated.rest import ApiException
29
+ from pprint import pprint
30
+
31
+ # Defining the host is optional and defaults to http://localhost
32
+ # See configuration.py for a list of all supported configuration parameters.
33
+ configuration = src.client.generated.Configuration(
34
+ host = "http://localhost"
35
+ )
36
+
37
+
38
+ # Enter a context with an instance of the API client
39
+ async with src.client.generated.ApiClient(configuration) as api_client:
40
+ # Create an instance of the API class
41
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
42
+ custom_field_id = 56 # int |
43
+ list_selection_dto = src.client.generated.ListSelectionDto() # ListSelectionDto |
44
+
45
+ try:
46
+ # Add custom field to projects
47
+ await api_instance.add2(custom_field_id, list_selection_dto)
48
+ except Exception as e:
49
+ print("Exception when calling CustomFieldProjectControllerApi->add2: %s\n" % e)
50
+ ```
51
+
52
+
53
+
54
+ ### Parameters
55
+
56
+
57
+ Name | Type | Description | Notes
58
+ ------------- | ------------- | ------------- | -------------
59
+ **custom_field_id** | **int**| |
60
+ **list_selection_dto** | [**ListSelectionDto**](ListSelectionDto.md)| |
61
+
62
+ ### Return type
63
+
64
+ void (empty response body)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: application/json
73
+ - **Accept**: Not defined
74
+
75
+ ### HTTP response details
76
+
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ **202** | Accepted | - |
80
+
81
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
82
+
83
+ # **add_to_project**
84
+ > add_to_project(project_id, list_selection_dto)
85
+
86
+ Add custom fields to project
87
+
88
+ ### Example
89
+
90
+
91
+ ```python
92
+ import src.client.generated
93
+ from src.client.generated.models.list_selection_dto import ListSelectionDto
94
+ from src.client.generated.rest import ApiException
95
+ from pprint import pprint
96
+
97
+ # Defining the host is optional and defaults to http://localhost
98
+ # See configuration.py for a list of all supported configuration parameters.
99
+ configuration = src.client.generated.Configuration(
100
+ host = "http://localhost"
101
+ )
102
+
103
+
104
+ # Enter a context with an instance of the API client
105
+ async with src.client.generated.ApiClient(configuration) as api_client:
106
+ # Create an instance of the API class
107
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
108
+ project_id = 56 # int |
109
+ list_selection_dto = src.client.generated.ListSelectionDto() # ListSelectionDto |
110
+
111
+ try:
112
+ # Add custom fields to project
113
+ await api_instance.add_to_project(project_id, list_selection_dto)
114
+ except Exception as e:
115
+ print("Exception when calling CustomFieldProjectControllerApi->add_to_project: %s\n" % e)
116
+ ```
117
+
118
+
119
+
120
+ ### Parameters
121
+
122
+
123
+ Name | Type | Description | Notes
124
+ ------------- | ------------- | ------------- | -------------
125
+ **project_id** | **int**| |
126
+ **list_selection_dto** | [**ListSelectionDto**](ListSelectionDto.md)| |
127
+
128
+ ### Return type
129
+
130
+ void (empty response body)
131
+
132
+ ### Authorization
133
+
134
+ No authorization required
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: application/json
139
+ - **Accept**: Not defined
140
+
141
+ ### HTTP response details
142
+
143
+ | Status code | Description | Response headers |
144
+ |-------------|-------------|------------------|
145
+ **202** | Accepted | - |
146
+
147
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
148
+
149
+ # **cf_delta1**
150
+ > List[IdAndNameOnlyDto] cf_delta1(to_project_id, test_case_id=test_case_id, test_case_tree_selection_dto=test_case_tree_selection_dto)
151
+
152
+ Find missing custom fields
153
+
154
+ ### Example
155
+
156
+
157
+ ```python
158
+ import src.client.generated
159
+ from src.client.generated.models.id_and_name_only_dto import IdAndNameOnlyDto
160
+ from src.client.generated.models.test_case_tree_selection_dto import TestCaseTreeSelectionDto
161
+ from src.client.generated.rest import ApiException
162
+ from pprint import pprint
163
+
164
+ # Defining the host is optional and defaults to http://localhost
165
+ # See configuration.py for a list of all supported configuration parameters.
166
+ configuration = src.client.generated.Configuration(
167
+ host = "http://localhost"
168
+ )
169
+
170
+
171
+ # Enter a context with an instance of the API client
172
+ async with src.client.generated.ApiClient(configuration) as api_client:
173
+ # Create an instance of the API class
174
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
175
+ to_project_id = 56 # int |
176
+ test_case_id = [56] # List[int] | (optional)
177
+ test_case_tree_selection_dto = src.client.generated.TestCaseTreeSelectionDto() # TestCaseTreeSelectionDto | (optional)
178
+
179
+ try:
180
+ # Find missing custom fields
181
+ api_response = await api_instance.cf_delta1(to_project_id, test_case_id=test_case_id, test_case_tree_selection_dto=test_case_tree_selection_dto)
182
+ print("The response of CustomFieldProjectControllerApi->cf_delta1:\n")
183
+ pprint(api_response)
184
+ except Exception as e:
185
+ print("Exception when calling CustomFieldProjectControllerApi->cf_delta1: %s\n" % e)
186
+ ```
187
+
188
+
189
+
190
+ ### Parameters
191
+
192
+
193
+ Name | Type | Description | Notes
194
+ ------------- | ------------- | ------------- | -------------
195
+ **to_project_id** | **int**| |
196
+ **test_case_id** | [**List[int]**](int.md)| | [optional]
197
+ **test_case_tree_selection_dto** | [**TestCaseTreeSelectionDto**](TestCaseTreeSelectionDto.md)| | [optional]
198
+
199
+ ### Return type
200
+
201
+ [**List[IdAndNameOnlyDto]**](IdAndNameOnlyDto.md)
202
+
203
+ ### Authorization
204
+
205
+ No authorization required
206
+
207
+ ### HTTP request headers
208
+
209
+ - **Content-Type**: application/json
210
+ - **Accept**: */*
211
+
212
+ ### HTTP response details
213
+
214
+ | Status code | Description | Response headers |
215
+ |-------------|-------------|------------------|
216
+ **200** | OK | - |
217
+
218
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
219
+
220
+ # **find_one45**
221
+ > CustomFieldProjectDto find_one45(custom_field_id, project_id)
222
+
223
+ ### Example
224
+
225
+
226
+ ```python
227
+ import src.client.generated
228
+ from src.client.generated.models.custom_field_project_dto import CustomFieldProjectDto
229
+ from src.client.generated.rest import ApiException
230
+ from pprint import pprint
231
+
232
+ # Defining the host is optional and defaults to http://localhost
233
+ # See configuration.py for a list of all supported configuration parameters.
234
+ configuration = src.client.generated.Configuration(
235
+ host = "http://localhost"
236
+ )
237
+
238
+
239
+ # Enter a context with an instance of the API client
240
+ async with src.client.generated.ApiClient(configuration) as api_client:
241
+ # Create an instance of the API class
242
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
243
+ custom_field_id = 56 # int |
244
+ project_id = 56 # int |
245
+
246
+ try:
247
+ api_response = await api_instance.find_one45(custom_field_id, project_id)
248
+ print("The response of CustomFieldProjectControllerApi->find_one45:\n")
249
+ pprint(api_response)
250
+ except Exception as e:
251
+ print("Exception when calling CustomFieldProjectControllerApi->find_one45: %s\n" % e)
252
+ ```
253
+
254
+
255
+
256
+ ### Parameters
257
+
258
+
259
+ Name | Type | Description | Notes
260
+ ------------- | ------------- | ------------- | -------------
261
+ **custom_field_id** | **int**| |
262
+ **project_id** | **int**| |
263
+
264
+ ### Return type
265
+
266
+ [**CustomFieldProjectDto**](CustomFieldProjectDto.md)
267
+
268
+ ### Authorization
269
+
270
+ No authorization required
271
+
272
+ ### HTTP request headers
273
+
274
+ - **Content-Type**: Not defined
275
+ - **Accept**: */*
276
+
277
+ ### HTTP response details
278
+
279
+ | Status code | Description | Response headers |
280
+ |-------------|-------------|------------------|
281
+ **200** | OK | - |
282
+
283
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
284
+
285
+ # **find_projects_by_custom_field**
286
+ > PageProjectCustomFieldDto find_projects_by_custom_field(custom_field_id, query=query, page=page, size=size, sort=sort)
287
+
288
+ Find projects that use specified custom field
289
+
290
+ ### Example
291
+
292
+
293
+ ```python
294
+ import src.client.generated
295
+ from src.client.generated.models.page_project_custom_field_dto import PageProjectCustomFieldDto
296
+ from src.client.generated.rest import ApiException
297
+ from pprint import pprint
298
+
299
+ # Defining the host is optional and defaults to http://localhost
300
+ # See configuration.py for a list of all supported configuration parameters.
301
+ configuration = src.client.generated.Configuration(
302
+ host = "http://localhost"
303
+ )
304
+
305
+
306
+ # Enter a context with an instance of the API client
307
+ async with src.client.generated.ApiClient(configuration) as api_client:
308
+ # Create an instance of the API class
309
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
310
+ custom_field_id = 56 # int |
311
+ query = 'query_example' # str | (optional)
312
+ page = 0 # int | Zero-based page index (0..N) (optional) (default to 0)
313
+ size = 10 # int | The size of the page to be returned (optional) (default to 10)
314
+ sort = [name,ASC] # List[str] | Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional) (default to [name,ASC])
315
+
316
+ try:
317
+ # Find projects that use specified custom field
318
+ api_response = await api_instance.find_projects_by_custom_field(custom_field_id, query=query, page=page, size=size, sort=sort)
319
+ print("The response of CustomFieldProjectControllerApi->find_projects_by_custom_field:\n")
320
+ pprint(api_response)
321
+ except Exception as e:
322
+ print("Exception when calling CustomFieldProjectControllerApi->find_projects_by_custom_field: %s\n" % e)
323
+ ```
324
+
325
+
326
+
327
+ ### Parameters
328
+
329
+
330
+ Name | Type | Description | Notes
331
+ ------------- | ------------- | ------------- | -------------
332
+ **custom_field_id** | **int**| |
333
+ **query** | **str**| | [optional]
334
+ **page** | **int**| Zero-based page index (0..N) | [optional] [default to 0]
335
+ **size** | **int**| The size of the page to be returned | [optional] [default to 10]
336
+ **sort** | [**List[str]**](str.md)| Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] [default to [name,ASC]]
337
+
338
+ ### Return type
339
+
340
+ [**PageProjectCustomFieldDto**](PageProjectCustomFieldDto.md)
341
+
342
+ ### Authorization
343
+
344
+ No authorization required
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: Not defined
349
+ - **Accept**: */*
350
+
351
+ ### HTTP response details
352
+
353
+ | Status code | Description | Response headers |
354
+ |-------------|-------------|------------------|
355
+ **200** | OK | - |
356
+
357
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
358
+
359
+ # **remove4**
360
+ > remove4(custom_field_id, project_id)
361
+
362
+ Remove custom field from project
363
+
364
+ ### Example
365
+
366
+
367
+ ```python
368
+ import src.client.generated
369
+ from src.client.generated.rest import ApiException
370
+ from pprint import pprint
371
+
372
+ # Defining the host is optional and defaults to http://localhost
373
+ # See configuration.py for a list of all supported configuration parameters.
374
+ configuration = src.client.generated.Configuration(
375
+ host = "http://localhost"
376
+ )
377
+
378
+
379
+ # Enter a context with an instance of the API client
380
+ async with src.client.generated.ApiClient(configuration) as api_client:
381
+ # Create an instance of the API class
382
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
383
+ custom_field_id = 56 # int |
384
+ project_id = 56 # int |
385
+
386
+ try:
387
+ # Remove custom field from project
388
+ await api_instance.remove4(custom_field_id, project_id)
389
+ except Exception as e:
390
+ print("Exception when calling CustomFieldProjectControllerApi->remove4: %s\n" % e)
391
+ ```
392
+
393
+
394
+
395
+ ### Parameters
396
+
397
+
398
+ Name | Type | Description | Notes
399
+ ------------- | ------------- | ------------- | -------------
400
+ **custom_field_id** | **int**| |
401
+ **project_id** | **int**| |
402
+
403
+ ### Return type
404
+
405
+ void (empty response body)
406
+
407
+ ### Authorization
408
+
409
+ No authorization required
410
+
411
+ ### HTTP request headers
412
+
413
+ - **Content-Type**: Not defined
414
+ - **Accept**: Not defined
415
+
416
+ ### HTTP response details
417
+
418
+ | Status code | Description | Response headers |
419
+ |-------------|-------------|------------------|
420
+ **204** | No Content | - |
421
+
422
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
423
+
424
+ # **set_default**
425
+ > set_default(default_custom_field_value_dto)
426
+
427
+ Deprecated. Use PATCH /api/project/{projectId}/cf/{cfId} instead
428
+
429
+ ### Example
430
+
431
+
432
+ ```python
433
+ import src.client.generated
434
+ from src.client.generated.models.default_custom_field_value_dto import DefaultCustomFieldValueDto
435
+ from src.client.generated.rest import ApiException
436
+ from pprint import pprint
437
+
438
+ # Defining the host is optional and defaults to http://localhost
439
+ # See configuration.py for a list of all supported configuration parameters.
440
+ configuration = src.client.generated.Configuration(
441
+ host = "http://localhost"
442
+ )
443
+
444
+
445
+ # Enter a context with an instance of the API client
446
+ async with src.client.generated.ApiClient(configuration) as api_client:
447
+ # Create an instance of the API class
448
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
449
+ default_custom_field_value_dto = src.client.generated.DefaultCustomFieldValueDto() # DefaultCustomFieldValueDto |
450
+
451
+ try:
452
+ # Deprecated. Use PATCH /api/project/{projectId}/cf/{cfId} instead
453
+ await api_instance.set_default(default_custom_field_value_dto)
454
+ except Exception as e:
455
+ print("Exception when calling CustomFieldProjectControllerApi->set_default: %s\n" % e)
456
+ ```
457
+
458
+
459
+
460
+ ### Parameters
461
+
462
+
463
+ Name | Type | Description | Notes
464
+ ------------- | ------------- | ------------- | -------------
465
+ **default_custom_field_value_dto** | [**DefaultCustomFieldValueDto**](DefaultCustomFieldValueDto.md)| |
466
+
467
+ ### Return type
468
+
469
+ void (empty response body)
470
+
471
+ ### Authorization
472
+
473
+ No authorization required
474
+
475
+ ### HTTP request headers
476
+
477
+ - **Content-Type**: application/json
478
+ - **Accept**: Not defined
479
+
480
+ ### HTTP response details
481
+
482
+ | Status code | Description | Response headers |
483
+ |-------------|-------------|------------------|
484
+ **202** | Accepted | - |
485
+
486
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
487
+
488
+ # **set_required**
489
+ > set_required(custom_field_id, project_id, required)
490
+
491
+ Deprecated. Use PATCH /api/project/{projectId}/cf/{cfId} instead
492
+
493
+ ### Example
494
+
495
+
496
+ ```python
497
+ import src.client.generated
498
+ from src.client.generated.rest import ApiException
499
+ from pprint import pprint
500
+
501
+ # Defining the host is optional and defaults to http://localhost
502
+ # See configuration.py for a list of all supported configuration parameters.
503
+ configuration = src.client.generated.Configuration(
504
+ host = "http://localhost"
505
+ )
506
+
507
+
508
+ # Enter a context with an instance of the API client
509
+ async with src.client.generated.ApiClient(configuration) as api_client:
510
+ # Create an instance of the API class
511
+ api_instance = src.client.generated.CustomFieldProjectControllerApi(api_client)
512
+ custom_field_id = 56 # int |
513
+ project_id = 56 # int |
514
+ required = True # bool |
515
+
516
+ try:
517
+ # Deprecated. Use PATCH /api/project/{projectId}/cf/{cfId} instead
518
+ await api_instance.set_required(custom_field_id, project_id, required)
519
+ except Exception as e:
520
+ print("Exception when calling CustomFieldProjectControllerApi->set_required: %s\n" % e)
521
+ ```
522
+
523
+
524
+
525
+ ### Parameters
526
+
527
+
528
+ Name | Type | Description | Notes
529
+ ------------- | ------------- | ------------- | -------------
530
+ **custom_field_id** | **int**| |
531
+ **project_id** | **int**| |
532
+ **required** | **bool**| |
533
+
534
+ ### Return type
535
+
536
+ void (empty response body)
537
+
538
+ ### Authorization
539
+
540
+ No authorization required
541
+
542
+ ### HTTP request headers
543
+
544
+ - **Content-Type**: Not defined
545
+ - **Accept**: Not defined
546
+
547
+ ### HTTP response details
548
+
549
+ | Status code | Description | Response headers |
550
+ |-------------|-------------|------------------|
551
+ **202** | Accepted | - |
552
+
553
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
554
+
@@ -0,0 +1,149 @@
1
+ # src.client.generated.CustomFieldProjectControllerV2Api
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**find_by_project1**](CustomFieldProjectControllerV2Api.md#find_by_project1) | **GET** /api/project/{projectId}/cf | Find custom fields used in specified project
8
+ [**patch24**](CustomFieldProjectControllerV2Api.md#patch24) | **PATCH** /api/project/{projectId}/cf/{cfId} |
9
+
10
+
11
+ # **find_by_project1**
12
+ > PageCustomFieldProjectDto find_by_project1(project_id, query=query, page=page, size=size, sort=sort)
13
+
14
+ Find custom fields used in specified project
15
+
16
+ ### Example
17
+
18
+
19
+ ```python
20
+ import src.client.generated
21
+ from src.client.generated.models.page_custom_field_project_dto import PageCustomFieldProjectDto
22
+ from src.client.generated.rest import ApiException
23
+ from pprint import pprint
24
+
25
+ # Defining the host is optional and defaults to http://localhost
26
+ # See configuration.py for a list of all supported configuration parameters.
27
+ configuration = src.client.generated.Configuration(
28
+ host = "http://localhost"
29
+ )
30
+
31
+
32
+ # Enter a context with an instance of the API client
33
+ async with src.client.generated.ApiClient(configuration) as api_client:
34
+ # Create an instance of the API class
35
+ api_instance = src.client.generated.CustomFieldProjectControllerV2Api(api_client)
36
+ project_id = 56 # int |
37
+ query = 'query_example' # str | (optional)
38
+ page = 0 # int | Zero-based page index (0..N) (optional) (default to 0)
39
+ size = 10 # int | The size of the page to be returned (optional) (default to 10)
40
+ sort = [id,ASC] # List[str] | Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (optional) (default to [id,ASC])
41
+
42
+ try:
43
+ # Find custom fields used in specified project
44
+ api_response = await api_instance.find_by_project1(project_id, query=query, page=page, size=size, sort=sort)
45
+ print("The response of CustomFieldProjectControllerV2Api->find_by_project1:\n")
46
+ pprint(api_response)
47
+ except Exception as e:
48
+ print("Exception when calling CustomFieldProjectControllerV2Api->find_by_project1: %s\n" % e)
49
+ ```
50
+
51
+
52
+
53
+ ### Parameters
54
+
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **project_id** | **int**| |
59
+ **query** | **str**| | [optional]
60
+ **page** | **int**| Zero-based page index (0..N) | [optional] [default to 0]
61
+ **size** | **int**| The size of the page to be returned | [optional] [default to 10]
62
+ **sort** | [**List[str]**](str.md)| Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported. | [optional] [default to [id,ASC]]
63
+
64
+ ### Return type
65
+
66
+ [**PageCustomFieldProjectDto**](PageCustomFieldProjectDto.md)
67
+
68
+ ### Authorization
69
+
70
+ No authorization required
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: Not defined
75
+ - **Accept**: */*
76
+
77
+ ### HTTP response details
78
+
79
+ | Status code | Description | Response headers |
80
+ |-------------|-------------|------------------|
81
+ **200** | OK | - |
82
+
83
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
84
+
85
+ # **patch24**
86
+ > patch24(project_id, cf_id, custom_field_project_patch_dto)
87
+
88
+ ### Example
89
+
90
+
91
+ ```python
92
+ import src.client.generated
93
+ from src.client.generated.models.custom_field_project_patch_dto import CustomFieldProjectPatchDto
94
+ from src.client.generated.rest import ApiException
95
+ from pprint import pprint
96
+
97
+ # Defining the host is optional and defaults to http://localhost
98
+ # See configuration.py for a list of all supported configuration parameters.
99
+ configuration = src.client.generated.Configuration(
100
+ host = "http://localhost"
101
+ )
102
+
103
+
104
+ # Enter a context with an instance of the API client
105
+ async with src.client.generated.ApiClient(configuration) as api_client:
106
+ # Create an instance of the API class
107
+ api_instance = src.client.generated.CustomFieldProjectControllerV2Api(api_client)
108
+ project_id = 56 # int |
109
+ cf_id = 56 # int |
110
+ custom_field_project_patch_dto = src.client.generated.CustomFieldProjectPatchDto() # CustomFieldProjectPatchDto |
111
+
112
+ try:
113
+ await api_instance.patch24(project_id, cf_id, custom_field_project_patch_dto)
114
+ except Exception as e:
115
+ print("Exception when calling CustomFieldProjectControllerV2Api->patch24: %s\n" % e)
116
+ ```
117
+
118
+
119
+
120
+ ### Parameters
121
+
122
+
123
+ Name | Type | Description | Notes
124
+ ------------- | ------------- | ------------- | -------------
125
+ **project_id** | **int**| |
126
+ **cf_id** | **int**| |
127
+ **custom_field_project_patch_dto** | [**CustomFieldProjectPatchDto**](CustomFieldProjectPatchDto.md)| |
128
+
129
+ ### Return type
130
+
131
+ void (empty response body)
132
+
133
+ ### Authorization
134
+
135
+ No authorization required
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: application/json
140
+ - **Accept**: Not defined
141
+
142
+ ### HTTP response details
143
+
144
+ | Status code | Description | Response headers |
145
+ |-------------|-------------|------------------|
146
+ **204** | No Content | - |
147
+
148
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
149
+