api to query other pacs

Hi, Here's the thing I want to achive:

Pacs A: Orthanc, Pacs B: ClearCanvas/DCM4CHEE, etc

use orthanct rest api to talk to A, A talks to B, and returns the result the it received.

I'm looking at the rest apis now, looks like /modalities/{dicom}/query is the one, am I correct?

If so, what's the request body format of this request? Thank you.

Another question: is it possible to retrieve the metadata (headers) of a dicom fetched using this way?

Thank you!

Hello,

You can find samples about how to use the REST API for query/retrieve in the integration tests of Orthanc:
https://goo.gl/9nBNtO

Once the DICOM files are received, you can read their metadata with the following URI:

/instances/.../header

HTH,
Sébastien-