File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
- 3.7.5
1
+ 3.7.6
2
2
Original file line number Diff line number Diff line change @@ -127,3 +127,10 @@ class clientResponseSchema(BaseModel):
127
127
ErrorWorkflow :str = ''
128
128
ModelViolation :Any = None
129
129
ErrorComms :pflinkError = pflinkError ()
130
+
131
+ class analyzeFunctionList (BaseModel ):
132
+ """
133
+ Response model for storing the list of all
134
+ the analyze functions available.
135
+ """
136
+ methods : list [str ] = []
Original file line number Diff line number Diff line change @@ -266,6 +266,18 @@ def urlOrthanc_update(URL:str) -> relayModel.serviceURLs:
266
266
update .urlOrthanc = URL
267
267
return update
268
268
269
+
270
+ @router .get (
271
+ '/analyze_function/list/' ,
272
+ response_model = list [str ],
273
+ summary = '''
274
+ GET the list of all analyze functions.
275
+ '''
276
+ )
277
+ async def retrieve_analyze_methods () -> list [str ]:
278
+ return list (settings .analyses .analyses .keys ())
279
+
280
+
269
281
@router .put (
270
282
'/analysis/' ,
271
283
response_model = settings .DylldAnalysis ,
@@ -415,3 +427,5 @@ class PACSqueryCore(BaseModel):
415
427
)
416
428
return d_ret
417
429
430
+
431
+
You can’t perform that action at this time.
0 commit comments