summaryrefslogtreecommitdiffstats
path: root/docs/sections/apis/PRH.json
diff options
context:
space:
mode:
authorEric Debeau <eric.debeau@orange.com>2019-05-14 17:45:22 +0000
committerEric Debeau <eric.debeau@orange.com>2019-05-16 13:58:23 +0000
commit1af30536774a0872b180f6c74a3e4ed487218747 (patch)
treebd09e30c08462cd1a032ca21ac6c5aac54ef1399 /docs/sections/apis/PRH.json
parentb643761e44851acf519fa039e11c2f413e7a25aa (diff)
Integration with Swagger
Correct doc8 errors Add licence in RST Add API table Add swaggerv2doc when OK Issue-ID: DCAEGEN2-1049 Change-Id: I7478b1c34625ce03ee4f1278a04a408f6f73718e Signed-off-by: Eric Debeau <eric.debeau@orange.com>
Diffstat (limited to 'docs/sections/apis/PRH.json')
-rw-r--r--docs/sections/apis/PRH.json115
1 files changed, 115 insertions, 0 deletions
diff --git a/docs/sections/apis/PRH.json b/docs/sections/apis/PRH.json
new file mode 100644
index 00000000..7ac63a55
--- /dev/null
+++ b/docs/sections/apis/PRH.json
@@ -0,0 +1,115 @@
+{
+ "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»»"
+ }
+ }
+}