summaryrefslogtreecommitdiffstats
path: root/docs/clamp/controlloop/swagger/k8sparticipant.json
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2021-09-27 09:24:04 +0100
committeradheli.tavares <adheli.tavares@est.tech>2021-09-29 21:31:05 +0100
commite3c1a48e7a02a25f437635c901a0adae772986ea (patch)
treea054de7e333e13998461a77e227f669b0e0d1974 /docs/clamp/controlloop/swagger/k8sparticipant.json
parent6359b334faad2db66065af85deb24be6fe7a835e (diff)
Rest API for Control Loop documentation.
Issue-ID: POLICY-3363 Change-Id: I1a69e163df2710b8b44f86195f228b44cd0d1d48 Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'docs/clamp/controlloop/swagger/k8sparticipant.json')
-rw-r--r--docs/clamp/controlloop/swagger/k8sparticipant.json392
1 files changed, 392 insertions, 0 deletions
diff --git a/docs/clamp/controlloop/swagger/k8sparticipant.json b/docs/clamp/controlloop/swagger/k8sparticipant.json
new file mode 100644
index 00000000..ae06b06d
--- /dev/null
+++ b/docs/clamp/controlloop/swagger/k8sparticipant.json
@@ -0,0 +1,392 @@
+{
+ "swagger": "2.0",
+ "info": {
+ "description": "Api Documentation",
+ "version": "1.0",
+ "title": "Api Documentation",
+ "termsOfService": "urn:tos",
+ "contact": {},
+ "license": {
+ "name": "Apache 2.0",
+ "url": "http://www.apache.org/licenses/LICENSE-2.0"
+ }
+ },
+ "paths": {
+ "/onap/k8sparticipant/helm/chart/{name}/{version}": {
+ "delete": {
+ "tags": [
+ "k8s-participant"
+ ],
+ "summary": "Delete the chart",
+ "operationId": "deleteChartUsingDELETE",
+ "produces": [
+ "*/*"
+ ],
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "version",
+ "in": "path",
+ "description": "version",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "object"
+ }
+ },
+ "204": {
+ "description": "Chart Deleted"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ }
+ }
+ }
+ },
+ "/onap/k8sparticipant/helm/charts": {
+ "get": {
+ "tags": [
+ "k8s-participant"
+ ],
+ "summary": "Return all Charts",
+ "operationId": "getAllChartsUsingGET",
+ "produces": [
+ "application/json"
+ ],
+ "responses": {
+ "200": {
+ "description": "chart List",
+ "schema": {
+ "$ref": "#/definitions/ChartList",
+ "originalRef": "ChartList"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ }
+ }
+ },
+ "/onap/k8sparticipant/helm/install": {
+ "post": {
+ "tags": [
+ "k8s-participant"
+ ],
+ "summary": "Install the chart",
+ "operationId": "installChartUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "info",
+ "description": "info",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/InstallationInfo",
+ "originalRef": "InstallationInfo"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "object"
+ }
+ },
+ "201": {
+ "description": "chart Installed",
+ "schema": {
+ "type": "object"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ }
+ }
+ },
+ "/onap/k8sparticipant/helm/onboard/chart": {
+ "post": {
+ "tags": [
+ "k8s-participant"
+ ],
+ "summary": "Onboard the Chart",
+ "operationId": "onboardChartUsingPOST",
+ "consumes": [
+ "multipart/form-data"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "chart",
+ "in": "formData",
+ "required": false,
+ "type": "file"
+ },
+ {
+ "name": "info",
+ "in": "formData",
+ "required": false,
+ "type": "string"
+ },
+ {
+ "in": "body",
+ "name": "values",
+ "description": "values",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "string"
+ }
+ },
+ "201": {
+ "description": "Chart Onboarded",
+ "schema": {
+ "type": "string"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ }
+ }
+ },
+ "/onap/k8sparticipant/helm/repo": {
+ "post": {
+ "tags": [
+ "k8s-participant"
+ ],
+ "summary": "Configure helm repository",
+ "operationId": "configureRepoUsingPOST",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "repo",
+ "description": "repo",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "object"
+ }
+ },
+ "201": {
+ "description": "Repository added",
+ "schema": {
+ "type": "object"
+ }
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ },
+ "404": {
+ "description": "Not Found"
+ }
+ }
+ }
+ },
+ "/onap/k8sparticipant/helm/uninstall/{name}/{version}": {
+ "delete": {
+ "tags": [
+ "k8s-participant"
+ ],
+ "summary": "Uninstall the Chart",
+ "operationId": "uninstallChartUsingDELETE",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "name",
+ "in": "path",
+ "description": "name",
+ "required": true,
+ "type": "string"
+ },
+ {
+ "name": "version",
+ "in": "path",
+ "description": "version",
+ "required": true,
+ "type": "string"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "type": "object"
+ }
+ },
+ "201": {
+ "description": "chart Uninstalled",
+ "schema": {
+ "type": "object"
+ }
+ },
+ "204": {
+ "description": "No Content"
+ },
+ "401": {
+ "description": "Unauthorized"
+ },
+ "403": {
+ "description": "Forbidden"
+ }
+ }
+ }
+ }
+ },
+ "definitions": {
+ "ChartInfo": {
+ "type": "object",
+ "properties": {
+ "chartId": {
+ "$ref": "#/definitions/ToscaConceptIdentifier",
+ "originalRef": "ToscaConceptIdentifier"
+ },
+ "namespace": {
+ "type": "string"
+ },
+ "overrideParams": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ }
+ },
+ "releaseName": {
+ "type": "string"
+ },
+ "repository": {
+ "$ref": "#/definitions/HelmRepository",
+ "originalRef": "HelmRepository"
+ }
+ },
+ "title": "ChartInfo"
+ },
+ "ChartList": {
+ "type": "object",
+ "properties": {
+ "charts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ChartInfo",
+ "originalRef": "ChartInfo"
+ }
+ }
+ },
+ "title": "ChartList"
+ },
+ "HelmRepository": {
+ "type": "object",
+ "properties": {
+ "address": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ },
+ "port": {
+ "type": "string"
+ },
+ "protocol": {
+ "type": "string"
+ },
+ "repoName": {
+ "type": "string"
+ },
+ "userName": {
+ "type": "string"
+ }
+ },
+ "title": "HelmRepository"
+ },
+ "InstallationInfo": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "title": "InstallationInfo"
+ },
+ "ToscaConceptIdentifier": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "version": {
+ "type": "string"
+ }
+ },
+ "title": "ToscaConceptIdentifier"
+ }
+ }
+} \ No newline at end of file