Fix cluster api responses

This commit is contained in:
Ingo Oppermann
2022-09-28 21:49:25 +02:00
parent 692b65b97c
commit 9ef4ae9b5e
6 changed files with 89 additions and 33 deletions

View File

@@ -62,7 +62,7 @@ const docTemplate = `{
"operationId": "graph-playground",
"responses": {
"200": {
"description": ""
"description": "OK"
}
}
}
@@ -327,14 +327,14 @@ const docTemplate = `{
"ApiKeyAuth": []
}
],
"description": "Replace an existing Node",
"description": "Replaces an existing node and returns the new node ID",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"summary": "Replace an existing Node",
"summary": "Replaces an existing node",
"operationId": "cluster-3-update-node",
"parameters": [
{
@@ -403,8 +403,14 @@ const docTemplate = `{
"type": "string"
}
},
"400": {
"description": "Bad Request",
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.Error"
}
@@ -438,10 +444,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
"$ref": "#/definitions/api.ClusterNodeFiles"
}
},
"404": {
@@ -2581,6 +2584,15 @@ const docTemplate = `{
}
}
},
"api.ClusterNodeFiles": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"api.Command": {
"type": "object",
"required": [