summaryrefslogtreecommitdiffstats
path: root/swagger.yaml
diff options
context:
space:
mode:
authormicdzied <michal.1.dziedzic@nokia.com>2018-05-07 08:42:44 +0200
committermicdzied <michal.1.dziedzic@nokia.com>2018-05-07 12:43:40 +0200
commit7e7aa0c165665f74b628ba5c95fb3cdae72f4449 (patch)
tree737fe8068a44e7e297c305af1ff699b1f53a7c5e /swagger.yaml
parentee36c363b3c90055d9b10059775a9d54a76f767a (diff)
creating swagger documentation
Change-Id: I8ca3faf2e6afb7add2785add2ac9096ded98f591 Issue-ID: DCAEGEN2-468 Signed-off-by: micdzied <michal.1.dziedzic@nokia.com>
Diffstat (limited to 'swagger.yaml')
-rw-r--r--swagger.yaml76
1 files changed, 76 insertions, 0 deletions
diff --git a/swagger.yaml b/swagger.yaml
new file mode 100644
index 00000000..37040bc8
--- /dev/null
+++ b/swagger.yaml
@@ -0,0 +1,76 @@
+---
+swagger: '2.0'
+info:
+ description: This page lists all the rest apis for PRH app server.
+ version: '1.0'
+ title: PRH app server
+host: localhost:8100
+basePath: "/"
+tags:
+- name: heartbeat-controller
+ description: Check liveness of PRH service
+- name: schedule-controller
+ description: Schedule Controller
+paths:
+ "/heartbeat":
+ get:
+ tags:
+ - heartbeat-controller
+ summary: Returns liveness of PRH service
+ operationId: heartbeatUsingGET
+ produces:
+ - "*/*"
+ responses:
+ '200':
+ description: PRH sevice is living
+ schema:
+ "$ref": "#/definitions/Mono«ResponseEntity«string»»"
+ '401':
+ description: You are not authorized to view the resource
+ '403':
+ description: Accessing the resource you were trying to reach is forbidden
+ '404':
+ description: The resource you were trying to reach is not found
+ "/start":
+ get:
+ tags:
+ - schedule-controller
+ summary: Start scheduling worker request
+ operationId: startTasksUsingGET
+ produces:
+ - "*/*"
+ responses:
+ '200':
+ description: OK
+ schema:
+ "$ref": "#/definitions/Mono«ResponseEntity«string»»"
+ '401':
+ description: Unauthorized
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+ "/stopPrh":
+ get:
+ tags:
+ - schedule-controller
+ summary: Stop scheduling worker request
+ operationId: stopTaskUsingGET
+ produces:
+ - "*/*"
+ responses:
+ '200':
+ description: OK
+ schema:
+ "$ref": "#/definitions/Mono«ResponseEntity«string»»"
+ '401':
+ description: Unauthorized
+ '403':
+ description: Forbidden
+ '404':
+ description: Not Found
+definitions:
+ Mono«ResponseEntity«string»»:
+ type: object
+ title: Mono«ResponseEntity«string»»
+