# HG changeset patch # User Alain Mazy # Date 1569340647 -7200 # Node ID 2e71e7cc0ec52c6904ddce110ad891c5d94731a0 # Parent eeb2c72dd5df8121a01e69c82e5b99ffdd595f54 API: add peers diff -r eeb2c72dd5df -r 2e71e7cc0ec5 OpenAPI/orthanc-openapi.yaml --- a/OpenAPI/orthanc-openapi.yaml Tue Sep 24 17:44:21 2019 +0200 +++ b/OpenAPI/orthanc-openapi.yaml Tue Sep 24 17:57:27 2019 +0200 @@ -242,6 +242,8 @@ "LocalAet": "ORTHANCA", "RemoteAet": "ORTHANCB" } + + jobPeerStore: properties: Description: @@ -294,6 +296,37 @@ type: string example: "62cdfbea-07c71f0c-cd643b19-841a306a-01221339" + peer: + required: + - Url + properties: + Url: + type: string + description: the root url of the Orthanc Rest API of the other peer + Username: + type: string + Password: + type: string + HttpHeaders: + description: HTTP headers to add to every request sent to that peer + type: object + CertificateFile: + type: string + CertificateKeyFile: + type: string + CertificateKeyPassword: + type: string + example: { + "Url" : "http://localhost:8044", + "Username" : "alice", + "Password" : "alicePassword", + "HttpHeaders" : { "Token" : "Hello world" }, + "CertificateFile" : "client.crt", + "CertificateKeyFile" : "client.key", + "CertificateKeyPassword" : "certpass" + } + + #################################################################################### ## ROUTES / PATHS #################################################################################### @@ -1008,9 +1041,9 @@ content: application/json: schema: - properties: - Url: - type: string + type: array + items: + $ref: "#/components/schemas/peer" responses: 200: description: Peer created