Issue/typo with openapi C-GET specification?

Bonjour,

I was implementing the new C-GET feature in PyOrthanc and was wondering if there was an error in the openapi documentation (Orthanc REST API).

I was able to get the endpoint working with a request body that contains Level and Resources, but Level doesn’t seem to be in the openapi spec, and I don’t know what Query refers to. Maybe I missed something?

I ended up having a request body that looks like this:

{
  "Level": "Study",
  "Resources": [{"StudyInstanceUID": "<study-instance-uid>"}]
}

Thanks in advance!
Gabriel

Bonjour @gacou54

Yes, you are right, I forgot to update the doc when the development was completed.

I have fixed it now.

Here is the updated openapi json file. I have not published it yet since it also contains a few other modifications that have not yet been released in Orthanc …

orthanc-openapi.json (715.7 KB)

Best regards,

Alain

Bonjour @alainmazy,

Thank you very much! I fixed the docstring on my side regarding the C-GET for the next pyorthanc release.

Best,
Gabriel

1 Like