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.
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/METADATA +23 -2
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/RECORD +29 -14
- src/client/client.py +105 -0
- src/client/generated/README.md +65 -7
- src/client/generated/__init__.py +16 -0
- src/client/generated/api/__init__.py +8 -0
- src/client/generated/api/custom_field_controller_api.py +2617 -0
- src/client/generated/api/custom_field_project_controller_api.py +2337 -0
- src/client/generated/api/custom_field_project_controller_v2_api.py +659 -0
- src/client/generated/api/custom_field_schema_controller_api.py +1710 -0
- src/client/generated/api/custom_field_value_controller_api.py +3106 -0
- src/client/generated/api/custom_field_value_project_controller_api.py +1835 -0
- src/client/generated/api/project_controller_api.py +2986 -0
- src/client/generated/api/status_controller_api.py +1780 -0
- src/client/generated/docs/CustomFieldControllerApi.md +616 -0
- src/client/generated/docs/CustomFieldProjectControllerApi.md +554 -0
- src/client/generated/docs/CustomFieldProjectControllerV2Api.md +149 -0
- src/client/generated/docs/CustomFieldSchemaControllerApi.md +421 -0
- src/client/generated/docs/CustomFieldValueControllerApi.md +723 -0
- src/client/generated/docs/CustomFieldValueProjectControllerApi.md +430 -0
- src/client/generated/docs/LaunchControllerApi.md +2 -2
- src/client/generated/docs/ProjectControllerApi.md +717 -0
- src/client/generated/docs/StatusControllerApi.md +429 -0
- src/services/test_case_service.py +92 -33
- src/tools/__init__.py +3 -0
- src/tools/get_custom_fields.py +48 -0
- src/client/refactor-hotspots.md +0 -53
- src/client/refactor-plan.md +0 -78
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/WHEEL +0 -0
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/entry_points.txt +0 -0
- {lucius_mcp-0.1.0.dist-info → lucius_mcp-0.2.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
# src.client.generated.CustomFieldControllerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**count_usage**](CustomFieldControllerApi.md#count_usage) | **GET** /api/cf/count-usage | Count custom fields usage in projects
|
|
8
|
+
[**create52**](CustomFieldControllerApi.md#create52) | **POST** /api/cf |
|
|
9
|
+
[**delete43**](CustomFieldControllerApi.md#delete43) | **DELETE** /api/cf/{id} |
|
|
10
|
+
[**find_by_project**](CustomFieldControllerApi.md#find_by_project) | **GET** /api/cf | Deprecated. Use GET /api/project/{projectId}/cf instead
|
|
11
|
+
[**find_one37**](CustomFieldControllerApi.md#find_one37) | **GET** /api/cf/{id} |
|
|
12
|
+
[**merge4**](CustomFieldControllerApi.md#merge4) | **POST** /api/cf/merge |
|
|
13
|
+
[**patch48**](CustomFieldControllerApi.md#patch48) | **PATCH** /api/cf/{id} |
|
|
14
|
+
[**set_archived**](CustomFieldControllerApi.md#set_archived) | **POST** /api/cf/{id}/archived | Soft delete custom field
|
|
15
|
+
[**suggest22**](CustomFieldControllerApi.md#suggest22) | **GET** /api/cf/suggest |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# **count_usage**
|
|
19
|
+
> List[CustomFieldProjectCountDto] count_usage(id)
|
|
20
|
+
|
|
21
|
+
Count custom fields usage in projects
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
import src.client.generated
|
|
28
|
+
from src.client.generated.models.custom_field_project_count_dto import CustomFieldProjectCountDto
|
|
29
|
+
from src.client.generated.rest import ApiException
|
|
30
|
+
from pprint import pprint
|
|
31
|
+
|
|
32
|
+
# Defining the host is optional and defaults to http://localhost
|
|
33
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
34
|
+
configuration = src.client.generated.Configuration(
|
|
35
|
+
host = "http://localhost"
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# Enter a context with an instance of the API client
|
|
40
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
41
|
+
# Create an instance of the API class
|
|
42
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
43
|
+
id = [56] # List[int] |
|
|
44
|
+
|
|
45
|
+
try:
|
|
46
|
+
# Count custom fields usage in projects
|
|
47
|
+
api_response = await api_instance.count_usage(id)
|
|
48
|
+
print("The response of CustomFieldControllerApi->count_usage:\n")
|
|
49
|
+
pprint(api_response)
|
|
50
|
+
except Exception as e:
|
|
51
|
+
print("Exception when calling CustomFieldControllerApi->count_usage: %s\n" % e)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
Name | Type | Description | Notes
|
|
60
|
+
------------- | ------------- | ------------- | -------------
|
|
61
|
+
**id** | [**List[int]**](int.md)| |
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**List[CustomFieldProjectCountDto]**](CustomFieldProjectCountDto.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
No authorization required
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: Not defined
|
|
74
|
+
- **Accept**: */*
|
|
75
|
+
|
|
76
|
+
### HTTP response details
|
|
77
|
+
|
|
78
|
+
| Status code | Description | Response headers |
|
|
79
|
+
|-------------|-------------|------------------|
|
|
80
|
+
**200** | OK | - |
|
|
81
|
+
|
|
82
|
+
[[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)
|
|
83
|
+
|
|
84
|
+
# **create52**
|
|
85
|
+
> CustomFieldDto create52(custom_field_create_dto)
|
|
86
|
+
|
|
87
|
+
### Example
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
import src.client.generated
|
|
92
|
+
from src.client.generated.models.custom_field_create_dto import CustomFieldCreateDto
|
|
93
|
+
from src.client.generated.models.custom_field_dto import CustomFieldDto
|
|
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.CustomFieldControllerApi(api_client)
|
|
108
|
+
custom_field_create_dto = src.client.generated.CustomFieldCreateDto() # CustomFieldCreateDto |
|
|
109
|
+
|
|
110
|
+
try:
|
|
111
|
+
api_response = await api_instance.create52(custom_field_create_dto)
|
|
112
|
+
print("The response of CustomFieldControllerApi->create52:\n")
|
|
113
|
+
pprint(api_response)
|
|
114
|
+
except Exception as e:
|
|
115
|
+
print("Exception when calling CustomFieldControllerApi->create52: %s\n" % e)
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Parameters
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
Name | Type | Description | Notes
|
|
124
|
+
------------- | ------------- | ------------- | -------------
|
|
125
|
+
**custom_field_create_dto** | [**CustomFieldCreateDto**](CustomFieldCreateDto.md)| |
|
|
126
|
+
|
|
127
|
+
### Return type
|
|
128
|
+
|
|
129
|
+
[**CustomFieldDto**](CustomFieldDto.md)
|
|
130
|
+
|
|
131
|
+
### Authorization
|
|
132
|
+
|
|
133
|
+
No authorization required
|
|
134
|
+
|
|
135
|
+
### HTTP request headers
|
|
136
|
+
|
|
137
|
+
- **Content-Type**: application/json
|
|
138
|
+
- **Accept**: */*
|
|
139
|
+
|
|
140
|
+
### HTTP response details
|
|
141
|
+
|
|
142
|
+
| Status code | Description | Response headers |
|
|
143
|
+
|-------------|-------------|------------------|
|
|
144
|
+
**200** | OK | - |
|
|
145
|
+
|
|
146
|
+
[[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)
|
|
147
|
+
|
|
148
|
+
# **delete43**
|
|
149
|
+
> delete43(id)
|
|
150
|
+
|
|
151
|
+
### Example
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
```python
|
|
155
|
+
import src.client.generated
|
|
156
|
+
from src.client.generated.rest import ApiException
|
|
157
|
+
from pprint import pprint
|
|
158
|
+
|
|
159
|
+
# Defining the host is optional and defaults to http://localhost
|
|
160
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
161
|
+
configuration = src.client.generated.Configuration(
|
|
162
|
+
host = "http://localhost"
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
# Enter a context with an instance of the API client
|
|
167
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
168
|
+
# Create an instance of the API class
|
|
169
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
170
|
+
id = 56 # int |
|
|
171
|
+
|
|
172
|
+
try:
|
|
173
|
+
await api_instance.delete43(id)
|
|
174
|
+
except Exception as e:
|
|
175
|
+
print("Exception when calling CustomFieldControllerApi->delete43: %s\n" % e)
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Parameters
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
Name | Type | Description | Notes
|
|
184
|
+
------------- | ------------- | ------------- | -------------
|
|
185
|
+
**id** | **int**| |
|
|
186
|
+
|
|
187
|
+
### Return type
|
|
188
|
+
|
|
189
|
+
void (empty response body)
|
|
190
|
+
|
|
191
|
+
### Authorization
|
|
192
|
+
|
|
193
|
+
No authorization required
|
|
194
|
+
|
|
195
|
+
### HTTP request headers
|
|
196
|
+
|
|
197
|
+
- **Content-Type**: Not defined
|
|
198
|
+
- **Accept**: Not defined
|
|
199
|
+
|
|
200
|
+
### HTTP response details
|
|
201
|
+
|
|
202
|
+
| Status code | Description | Response headers |
|
|
203
|
+
|-------------|-------------|------------------|
|
|
204
|
+
**204** | No Content | - |
|
|
205
|
+
|
|
206
|
+
[[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)
|
|
207
|
+
|
|
208
|
+
# **find_by_project**
|
|
209
|
+
> PageCustomFieldProjectDto find_by_project(project_id, query=query, page=page, size=size, sort=sort)
|
|
210
|
+
|
|
211
|
+
Deprecated. Use GET /api/project/{projectId}/cf instead
|
|
212
|
+
|
|
213
|
+
### Example
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
```python
|
|
217
|
+
import src.client.generated
|
|
218
|
+
from src.client.generated.models.page_custom_field_project_dto import PageCustomFieldProjectDto
|
|
219
|
+
from src.client.generated.rest import ApiException
|
|
220
|
+
from pprint import pprint
|
|
221
|
+
|
|
222
|
+
# Defining the host is optional and defaults to http://localhost
|
|
223
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
224
|
+
configuration = src.client.generated.Configuration(
|
|
225
|
+
host = "http://localhost"
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
# Enter a context with an instance of the API client
|
|
230
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
231
|
+
# Create an instance of the API class
|
|
232
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
233
|
+
project_id = 56 # int |
|
|
234
|
+
query = 'query_example' # str | (optional)
|
|
235
|
+
page = 0 # int | Zero-based page index (0..N) (optional) (default to 0)
|
|
236
|
+
size = 10 # int | The size of the page to be returned (optional) (default to 10)
|
|
237
|
+
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"])
|
|
238
|
+
|
|
239
|
+
try:
|
|
240
|
+
# Deprecated. Use GET /api/project/{projectId}/cf instead
|
|
241
|
+
api_response = await api_instance.find_by_project(project_id, query=query, page=page, size=size, sort=sort)
|
|
242
|
+
print("The response of CustomFieldControllerApi->find_by_project:\n")
|
|
243
|
+
pprint(api_response)
|
|
244
|
+
except Exception as e:
|
|
245
|
+
print("Exception when calling CustomFieldControllerApi->find_by_project: %s\n" % e)
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
### Parameters
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
Name | Type | Description | Notes
|
|
254
|
+
------------- | ------------- | ------------- | -------------
|
|
255
|
+
**project_id** | **int**| |
|
|
256
|
+
**query** | **str**| | [optional]
|
|
257
|
+
**page** | **int**| Zero-based page index (0..N) | [optional] [default to 0]
|
|
258
|
+
**size** | **int**| The size of the page to be returned | [optional] [default to 10]
|
|
259
|
+
**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"]]
|
|
260
|
+
|
|
261
|
+
### Return type
|
|
262
|
+
|
|
263
|
+
[**PageCustomFieldProjectDto**](PageCustomFieldProjectDto.md)
|
|
264
|
+
|
|
265
|
+
### Authorization
|
|
266
|
+
|
|
267
|
+
No authorization required
|
|
268
|
+
|
|
269
|
+
### HTTP request headers
|
|
270
|
+
|
|
271
|
+
- **Content-Type**: Not defined
|
|
272
|
+
- **Accept**: */*
|
|
273
|
+
|
|
274
|
+
### HTTP response details
|
|
275
|
+
|
|
276
|
+
| Status code | Description | Response headers |
|
|
277
|
+
|-------------|-------------|------------------|
|
|
278
|
+
**200** | OK | - |
|
|
279
|
+
|
|
280
|
+
[[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)
|
|
281
|
+
|
|
282
|
+
# **find_one37**
|
|
283
|
+
> CustomFieldDto find_one37(id)
|
|
284
|
+
|
|
285
|
+
### Example
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
```python
|
|
289
|
+
import src.client.generated
|
|
290
|
+
from src.client.generated.models.custom_field_dto import CustomFieldDto
|
|
291
|
+
from src.client.generated.rest import ApiException
|
|
292
|
+
from pprint import pprint
|
|
293
|
+
|
|
294
|
+
# Defining the host is optional and defaults to http://localhost
|
|
295
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
296
|
+
configuration = src.client.generated.Configuration(
|
|
297
|
+
host = "http://localhost"
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
# Enter a context with an instance of the API client
|
|
302
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
303
|
+
# Create an instance of the API class
|
|
304
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
305
|
+
id = 56 # int |
|
|
306
|
+
|
|
307
|
+
try:
|
|
308
|
+
api_response = await api_instance.find_one37(id)
|
|
309
|
+
print("The response of CustomFieldControllerApi->find_one37:\n")
|
|
310
|
+
pprint(api_response)
|
|
311
|
+
except Exception as e:
|
|
312
|
+
print("Exception when calling CustomFieldControllerApi->find_one37: %s\n" % e)
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### Parameters
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
Name | Type | Description | Notes
|
|
321
|
+
------------- | ------------- | ------------- | -------------
|
|
322
|
+
**id** | **int**| |
|
|
323
|
+
|
|
324
|
+
### Return type
|
|
325
|
+
|
|
326
|
+
[**CustomFieldDto**](CustomFieldDto.md)
|
|
327
|
+
|
|
328
|
+
### Authorization
|
|
329
|
+
|
|
330
|
+
No authorization required
|
|
331
|
+
|
|
332
|
+
### HTTP request headers
|
|
333
|
+
|
|
334
|
+
- **Content-Type**: Not defined
|
|
335
|
+
- **Accept**: */*
|
|
336
|
+
|
|
337
|
+
### HTTP response details
|
|
338
|
+
|
|
339
|
+
| Status code | Description | Response headers |
|
|
340
|
+
|-------------|-------------|------------------|
|
|
341
|
+
**200** | OK | - |
|
|
342
|
+
|
|
343
|
+
[[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)
|
|
344
|
+
|
|
345
|
+
# **merge4**
|
|
346
|
+
> merge4(custom_field_merge_dto)
|
|
347
|
+
|
|
348
|
+
### Example
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
```python
|
|
352
|
+
import src.client.generated
|
|
353
|
+
from src.client.generated.models.custom_field_merge_dto import CustomFieldMergeDto
|
|
354
|
+
from src.client.generated.rest import ApiException
|
|
355
|
+
from pprint import pprint
|
|
356
|
+
|
|
357
|
+
# Defining the host is optional and defaults to http://localhost
|
|
358
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
359
|
+
configuration = src.client.generated.Configuration(
|
|
360
|
+
host = "http://localhost"
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
# Enter a context with an instance of the API client
|
|
365
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
366
|
+
# Create an instance of the API class
|
|
367
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
368
|
+
custom_field_merge_dto = src.client.generated.CustomFieldMergeDto() # CustomFieldMergeDto |
|
|
369
|
+
|
|
370
|
+
try:
|
|
371
|
+
await api_instance.merge4(custom_field_merge_dto)
|
|
372
|
+
except Exception as e:
|
|
373
|
+
print("Exception when calling CustomFieldControllerApi->merge4: %s\n" % e)
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
### Parameters
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
Name | Type | Description | Notes
|
|
382
|
+
------------- | ------------- | ------------- | -------------
|
|
383
|
+
**custom_field_merge_dto** | [**CustomFieldMergeDto**](CustomFieldMergeDto.md)| |
|
|
384
|
+
|
|
385
|
+
### Return type
|
|
386
|
+
|
|
387
|
+
void (empty response body)
|
|
388
|
+
|
|
389
|
+
### Authorization
|
|
390
|
+
|
|
391
|
+
No authorization required
|
|
392
|
+
|
|
393
|
+
### HTTP request headers
|
|
394
|
+
|
|
395
|
+
- **Content-Type**: application/json
|
|
396
|
+
- **Accept**: Not defined
|
|
397
|
+
|
|
398
|
+
### HTTP response details
|
|
399
|
+
|
|
400
|
+
| Status code | Description | Response headers |
|
|
401
|
+
|-------------|-------------|------------------|
|
|
402
|
+
**202** | Accepted | - |
|
|
403
|
+
|
|
404
|
+
[[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)
|
|
405
|
+
|
|
406
|
+
# **patch48**
|
|
407
|
+
> CustomFieldDto patch48(id, custom_field_patch_dto)
|
|
408
|
+
|
|
409
|
+
### Example
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
```python
|
|
413
|
+
import src.client.generated
|
|
414
|
+
from src.client.generated.models.custom_field_dto import CustomFieldDto
|
|
415
|
+
from src.client.generated.models.custom_field_patch_dto import CustomFieldPatchDto
|
|
416
|
+
from src.client.generated.rest import ApiException
|
|
417
|
+
from pprint import pprint
|
|
418
|
+
|
|
419
|
+
# Defining the host is optional and defaults to http://localhost
|
|
420
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
421
|
+
configuration = src.client.generated.Configuration(
|
|
422
|
+
host = "http://localhost"
|
|
423
|
+
)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
# Enter a context with an instance of the API client
|
|
427
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
428
|
+
# Create an instance of the API class
|
|
429
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
430
|
+
id = 56 # int |
|
|
431
|
+
custom_field_patch_dto = src.client.generated.CustomFieldPatchDto() # CustomFieldPatchDto |
|
|
432
|
+
|
|
433
|
+
try:
|
|
434
|
+
api_response = await api_instance.patch48(id, custom_field_patch_dto)
|
|
435
|
+
print("The response of CustomFieldControllerApi->patch48:\n")
|
|
436
|
+
pprint(api_response)
|
|
437
|
+
except Exception as e:
|
|
438
|
+
print("Exception when calling CustomFieldControllerApi->patch48: %s\n" % e)
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
### Parameters
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
Name | Type | Description | Notes
|
|
447
|
+
------------- | ------------- | ------------- | -------------
|
|
448
|
+
**id** | **int**| |
|
|
449
|
+
**custom_field_patch_dto** | [**CustomFieldPatchDto**](CustomFieldPatchDto.md)| |
|
|
450
|
+
|
|
451
|
+
### Return type
|
|
452
|
+
|
|
453
|
+
[**CustomFieldDto**](CustomFieldDto.md)
|
|
454
|
+
|
|
455
|
+
### Authorization
|
|
456
|
+
|
|
457
|
+
No authorization required
|
|
458
|
+
|
|
459
|
+
### HTTP request headers
|
|
460
|
+
|
|
461
|
+
- **Content-Type**: application/json
|
|
462
|
+
- **Accept**: */*
|
|
463
|
+
|
|
464
|
+
### HTTP response details
|
|
465
|
+
|
|
466
|
+
| Status code | Description | Response headers |
|
|
467
|
+
|-------------|-------------|------------------|
|
|
468
|
+
**200** | OK | - |
|
|
469
|
+
|
|
470
|
+
[[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)
|
|
471
|
+
|
|
472
|
+
# **set_archived**
|
|
473
|
+
> CustomFieldDto set_archived(id, archived=archived)
|
|
474
|
+
|
|
475
|
+
Soft delete custom field
|
|
476
|
+
|
|
477
|
+
### Example
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
```python
|
|
481
|
+
import src.client.generated
|
|
482
|
+
from src.client.generated.models.custom_field_dto import CustomFieldDto
|
|
483
|
+
from src.client.generated.rest import ApiException
|
|
484
|
+
from pprint import pprint
|
|
485
|
+
|
|
486
|
+
# Defining the host is optional and defaults to http://localhost
|
|
487
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
488
|
+
configuration = src.client.generated.Configuration(
|
|
489
|
+
host = "http://localhost"
|
|
490
|
+
)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
# Enter a context with an instance of the API client
|
|
494
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
495
|
+
# Create an instance of the API class
|
|
496
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
497
|
+
id = 56 # int |
|
|
498
|
+
archived = True # bool | (optional)
|
|
499
|
+
|
|
500
|
+
try:
|
|
501
|
+
# Soft delete custom field
|
|
502
|
+
api_response = await api_instance.set_archived(id, archived=archived)
|
|
503
|
+
print("The response of CustomFieldControllerApi->set_archived:\n")
|
|
504
|
+
pprint(api_response)
|
|
505
|
+
except Exception as e:
|
|
506
|
+
print("Exception when calling CustomFieldControllerApi->set_archived: %s\n" % e)
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
### Parameters
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
Name | Type | Description | Notes
|
|
515
|
+
------------- | ------------- | ------------- | -------------
|
|
516
|
+
**id** | **int**| |
|
|
517
|
+
**archived** | **bool**| | [optional]
|
|
518
|
+
|
|
519
|
+
### Return type
|
|
520
|
+
|
|
521
|
+
[**CustomFieldDto**](CustomFieldDto.md)
|
|
522
|
+
|
|
523
|
+
### Authorization
|
|
524
|
+
|
|
525
|
+
No authorization required
|
|
526
|
+
|
|
527
|
+
### HTTP request headers
|
|
528
|
+
|
|
529
|
+
- **Content-Type**: Not defined
|
|
530
|
+
- **Accept**: */*
|
|
531
|
+
|
|
532
|
+
### HTTP response details
|
|
533
|
+
|
|
534
|
+
| Status code | Description | Response headers |
|
|
535
|
+
|-------------|-------------|------------------|
|
|
536
|
+
**200** | OK | - |
|
|
537
|
+
|
|
538
|
+
[[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)
|
|
539
|
+
|
|
540
|
+
# **suggest22**
|
|
541
|
+
> PageIdAndNameOnlyDto suggest22(project_id=project_id, query=query, exclude_project_id=exclude_project_id, id=id, ignore_id=ignore_id, page=page, size=size, sort=sort)
|
|
542
|
+
|
|
543
|
+
### Example
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
```python
|
|
547
|
+
import src.client.generated
|
|
548
|
+
from src.client.generated.models.page_id_and_name_only_dto import PageIdAndNameOnlyDto
|
|
549
|
+
from src.client.generated.rest import ApiException
|
|
550
|
+
from pprint import pprint
|
|
551
|
+
|
|
552
|
+
# Defining the host is optional and defaults to http://localhost
|
|
553
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
554
|
+
configuration = src.client.generated.Configuration(
|
|
555
|
+
host = "http://localhost"
|
|
556
|
+
)
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
# Enter a context with an instance of the API client
|
|
560
|
+
async with src.client.generated.ApiClient(configuration) as api_client:
|
|
561
|
+
# Create an instance of the API class
|
|
562
|
+
api_instance = src.client.generated.CustomFieldControllerApi(api_client)
|
|
563
|
+
project_id = 56 # int | (optional)
|
|
564
|
+
query = 'query_example' # str | (optional)
|
|
565
|
+
exclude_project_id = [56] # List[int] | (optional)
|
|
566
|
+
id = [56] # List[int] | (optional)
|
|
567
|
+
ignore_id = [56] # List[int] | (optional)
|
|
568
|
+
page = 0 # int | Zero-based page index (0..N) (optional) (default to 0)
|
|
569
|
+
size = 10 # int | The size of the page to be returned (optional) (default to 10)
|
|
570
|
+
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"])
|
|
571
|
+
|
|
572
|
+
try:
|
|
573
|
+
api_response = await api_instance.suggest22(project_id=project_id, query=query, exclude_project_id=exclude_project_id, id=id, ignore_id=ignore_id, page=page, size=size, sort=sort)
|
|
574
|
+
print("The response of CustomFieldControllerApi->suggest22:\n")
|
|
575
|
+
pprint(api_response)
|
|
576
|
+
except Exception as e:
|
|
577
|
+
print("Exception when calling CustomFieldControllerApi->suggest22: %s\n" % e)
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
### Parameters
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
Name | Type | Description | Notes
|
|
586
|
+
------------- | ------------- | ------------- | -------------
|
|
587
|
+
**project_id** | **int**| | [optional]
|
|
588
|
+
**query** | **str**| | [optional]
|
|
589
|
+
**exclude_project_id** | [**List[int]**](int.md)| | [optional]
|
|
590
|
+
**id** | [**List[int]**](int.md)| | [optional]
|
|
591
|
+
**ignore_id** | [**List[int]**](int.md)| | [optional]
|
|
592
|
+
**page** | **int**| Zero-based page index (0..N) | [optional] [default to 0]
|
|
593
|
+
**size** | **int**| The size of the page to be returned | [optional] [default to 10]
|
|
594
|
+
**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"]]
|
|
595
|
+
|
|
596
|
+
### Return type
|
|
597
|
+
|
|
598
|
+
[**PageIdAndNameOnlyDto**](PageIdAndNameOnlyDto.md)
|
|
599
|
+
|
|
600
|
+
### Authorization
|
|
601
|
+
|
|
602
|
+
No authorization required
|
|
603
|
+
|
|
604
|
+
### HTTP request headers
|
|
605
|
+
|
|
606
|
+
- **Content-Type**: Not defined
|
|
607
|
+
- **Accept**: */*
|
|
608
|
+
|
|
609
|
+
### HTTP response details
|
|
610
|
+
|
|
611
|
+
| Status code | Description | Response headers |
|
|
612
|
+
|-------------|-------------|------------------|
|
|
613
|
+
**200** | OK | - |
|
|
614
|
+
|
|
615
|
+
[[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)
|
|
616
|
+
|