Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix firewallrule description in swagger API doc #1129

Merged
merged 1 commit into from
Jun 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/api/rest/server/mcir/firewallrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ type TbFirewallRulesWrapper struct {
// RestPostFirewallRules godoc
// @Summary Create FirewallRules
// @Description Create FirewallRules
// @Tags [Infra resource] MCIR Network management
// @Tags [Infra resource] MCIR Security group management
// @Accept json
// @Produce json
// @Param nsId path string true "Namespace ID" default(ns01)
// @Param firewallRuleReq body TbFirewallRulesWrapper true "FirewallRules to create"
// @Success 200 {object} mcir.TbFirewallRuleInfo
// @Success 200 {object} mcir.TbSecurityGroupInfo
// @Failure 404 {object} common.SimpleMsg
// @Failure 500 {object} common.SimpleMsg
// @Router /ns/{nsId}/resources/securityGroup/{securityGroupId}/rules [post]
Expand Down Expand Up @@ -63,7 +63,7 @@ func RestPostFirewallRules(c echo.Context) error {
// RestPutFirewallRules godoc
// @Summary Update FirewallRules
// @Description Update FirewallRules
// @Tags [Infra resource] MCIR Network management
// @Tags [Infra resource] MCIR Security group management
// @Accept json
// @Produce json
// @Param nsId path string true "Namespace ID" default(ns01)
Expand All @@ -83,7 +83,7 @@ func RestPutFirewallRules(c echo.Context) error {
// RestGetFirewallRules godoc
// @Summary Get FirewallRules
// @Description Get FirewallRules
// @Tags [Infra resource] MCIR Network management
// @Tags [Infra resource] MCIR Security group management
// @Accept json
// @Produce json
// @Param nsId path string true "Namespace ID" default(ns01)
Expand All @@ -106,12 +106,12 @@ type RestGetAllFirewallRulesResponse struct {
// RestDelFirewallRules godoc
// @Summary Delete FirewallRules
// @Description Delete FirewallRules
// @Tags [Infra resource] MCIR Network management
// @Tags [Infra resource] MCIR Security group management
// @Accept json
// @Produce json
// @Param nsId path string true "Namespace ID" default(ns01)
// @Param firewallRuleReq body TbFirewallRulesWrapper true "FirewallRules to delete"
// @Success 200 {object} common.SimpleMsg
// @Success 200 {object} mcir.TbSecurityGroupInfo
// @Failure 404 {object} common.SimpleMsg
// @Router /ns/{nsId}/resources/securityGroup/{securityGroupId}/rules [delete]
func RestDelFirewallRules(c echo.Context) error {
Expand Down