Skip to content

Commit

Permalink
Merge pull request #1129 from seokho-son/main
Browse files Browse the repository at this point in the history
Fix firewallrule description in swagger API doc
  • Loading branch information
seokho-son authored Jun 3, 2022
2 parents 991f2bd + 3568508 commit d0c8f50
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit d0c8f50

Please sign in to comment.