From 28b50e359bcc1b7f4033ec70f6ebbc71d9409c75 Mon Sep 17 00:00:00 2001 From: michael-conway Date: Fri, 10 Feb 2017 15:04:34 -0500 Subject: [PATCH] #2 add a ping to help with testing --- base/base.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/base/base.yaml b/base/base.yaml index 2514e13..0e9b66e 100644 --- a/base/base.yaml +++ b/base/base.yaml @@ -18,6 +18,21 @@ securityDefinitions: security: - basicAuth: [] paths: + '/server/ping': + get: + tags: + - status + summary: Get a ping back from the server + description: 'Call iRODS as an authorized user and get back a simple ping response' + operationId: server + produces: + - application/json + - application/xml + responses: + 200: + description: 'Successful ping, containing info on how long it too the REST backend to connect to iRODS' + schema: + $ref: '#/definitions/Ping' '/collection/{absoluteLogicalPath}/info': get: tags: @@ -176,6 +191,13 @@ definitions: parthPart: type: string description: part of a path + Ping: + type: object + properties: + pingTime: + type: number + format: float + description: milliseconds to connect to iRODS and get a response from the perspective of the mid-tier service