updated docs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-06 16:01:01 +11:00
parent 0e3cf5aae9
commit 9677d083a8
6 changed files with 96 additions and 55 deletions

View File

@@ -185,6 +185,12 @@ const docTemplate = `{
"$ref": "#/definitions/models.StatusMessageResponse"
}
},
"400": {
"description": "Invalid request",
"schema": {
"$ref": "#/definitions/models.ErrorResponse"
}
},
"500": {
"description": "Server error",
"schema": {
@@ -201,7 +207,7 @@ const docTemplate = `{
"application/json"
],
"produces": [
"text/plain"
"application/json"
],
"tags": [
"events"
@@ -223,19 +229,19 @@ const docTemplate = `{
"200": {
"description": "Create event processed",
"schema": {
"type": "string"
"$ref": "#/definitions/models.StatusMessageResponse"
}
},
"400": {
"description": "Invalid request",
"schema": {
"type": "string"
"$ref": "#/definitions/models.ErrorResponse"
}
},
"500": {
"description": "Server error",
"schema": {
"type": "string"
"$ref": "#/definitions/models.ErrorResponse"
}
}
}
@@ -248,7 +254,7 @@ const docTemplate = `{
"application/json"
],
"produces": [
"text/plain"
"application/json"
],
"tags": [
"events"
@@ -270,19 +276,19 @@ const docTemplate = `{
"200": {
"description": "Delete event processed",
"schema": {
"type": "string"
"$ref": "#/definitions/models.StatusMessageResponse"
}
},
"400": {
"description": "Invalid request",
"schema": {
"type": "string"
"$ref": "#/definitions/models.ErrorResponse"
}
},
"500": {
"description": "Server error",
"schema": {
"type": "string"
"$ref": "#/definitions/models.ErrorResponse"
}
}
}
@@ -468,7 +474,7 @@ const docTemplate = `{
"post": {
"description": "Queries vCenter and updates inventory records with missing details.",
"produces": [
"text/plain"
"application/json"
],
"tags": [
"inventory"
@@ -478,13 +484,13 @@ const docTemplate = `{
"200": {
"description": "Update completed",
"schema": {
"type": "string"
"$ref": "#/definitions/models.StatusMessageResponse"
}
},
"500": {
"description": "Server error",
"schema": {
"type": "string"
"$ref": "#/definitions/models.ErrorResponse"
}
}
}