Skip to content

Commit

Permalink
docs: fix wrong description of MonthConfigs PATCH API endpoint (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer committed Nov 26, 2022
1 parent 1be0040 commit aec98f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2088,14 +2088,14 @@ const docTemplate = `{
}
},
"patch": {
"description": "Creates a new MonthConfig",
"description": "Changes settings of an existing MonthConfig",
"produces": [
"application/json"
],
"tags": [
"MonthConfigs"
],
"summary": "Create MonthConfig",
"summary": "Update MonthConfig",
"parameters": [
{
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2076,14 +2076,14 @@
}
},
"patch": {
"description": "Creates a new MonthConfig",
"description": "Changes settings of an existing MonthConfig",
"produces": [
"application/json"
],
"tags": [
"MonthConfigs"
],
"summary": "Create MonthConfig",
"summary": "Update MonthConfig",
"parameters": [
{
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ paths:
tags:
- MonthConfigs
patch:
description: Creates a new MonthConfig
description: Changes settings of an existing MonthConfig
parameters:
- description: ID of the Envelope
in: path
Expand Down Expand Up @@ -2157,7 +2157,7 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/httperrors.HTTPError'
summary: Create MonthConfig
summary: Update MonthConfig
tags:
- MonthConfigs
post:
Expand Down
4 changes: 2 additions & 2 deletions pkg/controllers/month_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ func (co Controller) CreateMonthConfig(c *gin.Context) {
c.JSON(http.StatusCreated, MonthConfigResponse{Data: mConfigObject})
}

// @Summary Create MonthConfig
// @Description Creates a new MonthConfig
// @Summary Update MonthConfig
// @Description Changes settings of an existing MonthConfig
// @Tags MonthConfigs
// @Produce json
// @Success 201 {object} MonthConfigResponse
Expand Down

0 comments on commit aec98f3

Please sign in to comment.