diff --git a/pkg/models/task_relation.go b/pkg/models/task_relation.go index 4be80a4ca..4b626c33b 100644 --- a/pkg/models/task_relation.go +++ b/pkg/models/task_relation.go @@ -202,7 +202,7 @@ func (rel *TaskRelation) Create(s *xorm.Session, a web.Auth) error { // @Param relation body models.TaskRelation true "The relation object" // @Param taskID path int true "Task ID" // @Param relationKind path string true "The kind of the relation. See the TaskRelation type for more info." -// @Param otherTaskID path int true "The id of the other task." +// @Param otherTaskId path int true "The id of the other task." // @Success 200 {object} models.Message "The task relation was successfully deleted." // @Failure 400 {object} web.HTTPError "Invalid task relation object provided." // @Failure 404 {object} web.HTTPError "The task relation was not found." diff --git a/pkg/modules/background/unsplash/proxy.go b/pkg/modules/background/unsplash/proxy.go index 13091f45c..7259a42f2 100644 --- a/pkg/modules/background/unsplash/proxy.go +++ b/pkg/modules/background/unsplash/proxy.go @@ -47,7 +47,7 @@ func unsplashImage(url string, c echo.Context) error { // @Description Get an unsplash image. **Returns json on error.** // @tags list // @Produce octet-stream -// @Param thumb path int true "Unsplash Image ID" +// @Param image path int true "Unsplash Image ID" // @Security JWTKeyAuth // @Success 200 {} string "The image" // @Failure 404 {object} models.Message "The image does not exist." @@ -67,7 +67,7 @@ func ProxyUnsplashImage(c echo.Context) error { // @Description Get an unsplash thumbnail image. The thumbnail is cropped to a max width of 200px. **Returns json on error.** // @tags list // @Produce octet-stream -// @Param thumb path int true "Unsplash Image ID" +// @Param image path int true "Unsplash Image ID" // @Security JWTKeyAuth // @Success 200 {} string "The thumbnail" // @Failure 404 {object} models.Message "The image does not exist." diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 0c2e6c95f..fbb05a841 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -95,7 +95,7 @@ const docTemplate = `{ { "type": "integer", "description": "Unsplash Image ID", - "name": "thumb", + "name": "image", "in": "path", "required": true } @@ -141,7 +141,7 @@ const docTemplate = `{ { "type": "integer", "description": "Unsplash Image ID", - "name": "thumb", + "name": "image", "in": "path", "required": true } @@ -5688,7 +5688,7 @@ const docTemplate = `{ { "type": "integer", "description": "The id of the other task.", - "name": "otherTaskID", + "name": "otherTaskId", "in": "path", "required": true } diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 6b6e43c6b..9f0e5b337 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -86,7 +86,7 @@ { "type": "integer", "description": "Unsplash Image ID", - "name": "thumb", + "name": "image", "in": "path", "required": true } @@ -132,7 +132,7 @@ { "type": "integer", "description": "Unsplash Image ID", - "name": "thumb", + "name": "image", "in": "path", "required": true } @@ -5679,7 +5679,7 @@ { "type": "integer", "description": "The id of the other task.", - "name": "otherTaskID", + "name": "otherTaskId", "in": "path", "required": true } diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index d7cb7c064..2d279bdcf 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -1509,7 +1509,7 @@ paths: parameters: - description: Unsplash Image ID in: path - name: thumb + name: image required: true type: integer produces: @@ -1539,7 +1539,7 @@ paths: parameters: - description: Unsplash Image ID in: path - name: thumb + name: image required: true type: integer produces: @@ -5247,7 +5247,7 @@ paths: type: string - description: The id of the other task. in: path - name: otherTaskID + name: otherTaskId required: true type: integer produces: