Mercurial > hg > orthanc-book
changeset 288:2e71e7cc0ec5
API: add peers
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 24 Sep 2019 17:57:27 +0200 |
parents | eeb2c72dd5df |
children | 9223c3f26c1a |
files | OpenAPI/orthanc-openapi.yaml |
diffstat | 1 files changed, 36 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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