Skip to content

Commit

Permalink
Update Swagger REST API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-son authored and web-flow committed Sep 18, 2023
1 parent 0ce2130 commit 815f641
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/api/rest/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,41 @@ const docTemplate = `{
}
}
},
"/httpVersion": {
"get": {
"description": "Checks and logs the HTTP version of the incoming request to the server console.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"[Admin] System management"
],
"summary": "Check HTTP version of incoming request",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
}
}
}
},
"/inspectResources": {
"post": {
"description": "Inspect Resources (vNet, securityGroup, sshKey, vm) registered in CB-Tumblebug, CB-Spider, CSP",
Expand Down
35 changes: 35 additions & 0 deletions src/api/rest/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,41 @@
}
}
},
"/httpVersion": {
"get": {
"description": "Checks and logs the HTTP version of the incoming request to the server console.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"[Admin] System management"
],
"summary": "Check HTTP version of incoming request",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/common.SimpleMsg"
}
}
}
}
},
"/inspectResources": {
"post": {
"description": "Inspect Resources (vNet, securityGroup, sshKey, vm) registered in CB-Tumblebug, CB-Spider, CSP",
Expand Down
24 changes: 24 additions & 0 deletions src/api/rest/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2649,6 +2649,30 @@ paths:
summary: Check Tumblebug is alive
tags:
- '[Admin] System management'
/httpVersion:
get:
consumes:
- application/json
description: Checks and logs the HTTP version of the incoming request to the
server console.
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/common.SimpleMsg'
"404":
description: Not Found
schema:
$ref: '#/definitions/common.SimpleMsg'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/common.SimpleMsg'
summary: Check HTTP version of incoming request
tags:
- '[Admin] System management'
/inspectResources:
post:
consumes:
Expand Down

0 comments on commit 815f641

Please sign in to comment.