fix(api): renew endpoint uses get instead of post, correct @Accept docs

This commit is contained in:
yusing
2025-08-17 14:52:56 +08:00
parent e52c86e0b7
commit d1eb3470b5
8 changed files with 23 additions and 64 deletions

View File

@@ -297,9 +297,6 @@
"/cert/info": {
"get": {
"description": "Get cert info",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
@@ -338,16 +335,14 @@
}
},
"/cert/renew": {
"post": {
"get": {
"description": "Renew cert",
"consumes": [
"application/json"
],
"produces": [
"application/json"
"text/plain"
],
"tags": [
"cert"
"cert",
"websocket"
],
"summary": "Renew cert",
"responses": {
@@ -377,9 +372,6 @@
"/docker/containers": {
"get": {
"description": "Get containers",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
@@ -417,9 +409,6 @@
"/docker/info": {
"get": {
"description": "Get docker info",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
@@ -431,10 +420,7 @@
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/ServerInfo"
}
"$ref": "#/definitions/ServerInfo"
}
},
"403": {