Mercurial > hg > orthanc-python
diff Sources/Autogenerated/orthanc.pyi @ 192:b0f096d2339e java-code-model
documentation of orthanc.RegisterRestCallback()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jul 2024 18:25:53 +0200 |
parents | 30ed49f2487f |
children | 66cd20e970d8 |
line wrap: on
line diff
--- a/Sources/Autogenerated/orthanc.pyi Tue Jul 02 18:00:52 2024 +0200 +++ b/Sources/Autogenerated/orthanc.pyi Tue Jul 02 18:25:53 2024 +0200 @@ -23,6 +23,8 @@ import enum +import typing + class ChangeType(enum.Enum): @@ -2088,6 +2090,16 @@ data (bytes): The content of the memory buffer. """ ... +# Register a REST callback +def RegisterRestCallback(path_regular_expression: str, callback: typing.Callable[[RestOutput, str], None]) -> None: + """ + Register a REST callback. + + Args: + path_regular_expression (str): Regular expression for the URI. May contain groups. + callback (typing.Callable[[RestOutput, str], None]): The callback function to handle the REST call. + """ + ... class DicomInstance: