Skip to content

Commit

Permalink
Fix api description for subnet
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Jan 12, 2024
2 parents 7ba0fc1 + 0a183f3 commit a1a8fce
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api/rest/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6666,6 +6666,13 @@ const docTemplate = `{
"in": "path",
"required": true
},
{
"type": "string",
"description": "VNet ID",
"name": "vNetId",
"in": "path",
"required": true
},
{
"description": "Details for an Subnet object",
"name": "subnetReq",
Expand Down Expand Up @@ -6720,6 +6727,13 @@ const docTemplate = `{
"in": "path",
"required": true
},
{
"type": "string",
"description": "VNet ID",
"name": "vNetId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Subnet ID",
Expand Down
14 changes: 14 additions & 0 deletions src/api/rest/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6659,6 +6659,13 @@
"in": "path",
"required": true
},
{
"type": "string",
"description": "VNet ID",
"name": "vNetId",
"in": "path",
"required": true
},
{
"description": "Details for an Subnet object",
"name": "subnetReq",
Expand Down Expand Up @@ -6713,6 +6720,13 @@
"in": "path",
"required": true
},
{
"type": "string",
"description": "VNet ID",
"name": "vNetId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Subnet ID",
Expand Down
10 changes: 10 additions & 0 deletions src/api/rest/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6987,6 +6987,11 @@ paths:
name: nsId
required: true
type: string
- description: VNet ID
in: path
name: vNetId
required: true
type: string
- description: Details for an Subnet object
in: body
name: subnetReq
Expand Down Expand Up @@ -7023,6 +7028,11 @@ paths:
name: nsId
required: true
type: string
- description: VNet ID
in: path
name: vNetId
required: true
type: string
- description: Subnet ID
in: path
name: subnetId
Expand Down
2 changes: 2 additions & 0 deletions src/api/rest/server/mcir/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
// @Accept json
// @Produce json
// @Param nsId path string true "Namespace ID" default(ns01)
// @Param vNetId path string true "VNet ID"
// @Param subnetReq body mcir.TbSubnetReq true "Details for an Subnet object"
// @Success 200 {object} mcir.TbSubnetInfo
// @Failure 404 {object} common.SimpleMsg
Expand Down Expand Up @@ -113,6 +114,7 @@ func RestGetAllSubnet(c echo.Context) error {
// @Accept json
// @Produce json
// @Param nsId path string true "Namespace ID" default(ns01)
// @Param vNetId path string true "VNet ID"
// @Param subnetId path string true "Subnet ID"
// @Success 200 {object} common.SimpleMsg
// @Failure 404 {object} common.SimpleMsg
Expand Down

0 comments on commit a1a8fce

Please sign in to comment.