diff --git a/api/server/routes/syms/syms.go b/api/server/routes/syms/syms.go index 5b944be42..2240e0a05 100644 --- a/api/server/routes/syms/syms.go +++ b/api/server/routes/syms/syms.go @@ -106,7 +106,7 @@ func AddRoutes(rg *gin.RouterGroup, db db.Database, pemDB, sigsDir string) { } c.JSON(http.StatusOK, successResponse{Success: true}) }) - // swagger:route POST /syms/rescan Syms postRescan + // swagger:route PUT /syms/rescan Syms putRescan // // Rescan // @@ -134,7 +134,7 @@ func AddRoutes(rg *gin.RouterGroup, db db.Database, pemDB, sigsDir string) { // Responses: // 200: successResponse // 500: genericError - rg.POST("/syms/rescan", func(c *gin.Context) { + rg.PUT("/syms/rescan", func(c *gin.Context) { ipswPath, ok := c.GetQuery("path") if !ok { c.AbortWithStatusJSON(http.StatusBadRequest, types.GenericError{Error: "missing path query parameter"}) diff --git a/api/swagger.json b/api/swagger.json index 7afcf23c6..ad278cf93 100644 --- a/api/swagger.json +++ b/api/swagger.json @@ -1559,7 +1559,7 @@ } }, "/syms/rescan": { - "post": { + "put": { "description": "Rescan symbols for a given IPSW.", "produces": [ "application/json" @@ -1568,7 +1568,7 @@ "Syms" ], "summary": "Rescan", - "operationId": "postRescan", + "operationId": "putRescan", "parameters": [ { "type": "string", diff --git a/www/static/api/swagger.json b/www/static/api/swagger.json index 7afcf23c6..ad278cf93 100644 --- a/www/static/api/swagger.json +++ b/www/static/api/swagger.json @@ -1559,7 +1559,7 @@ } }, "/syms/rescan": { - "post": { + "put": { "description": "Rescan symbols for a given IPSW.", "produces": [ "application/json" @@ -1568,7 +1568,7 @@ "Syms" ], "summary": "Rescan", - "operationId": "postRescan", + "operationId": "putRescan", "parameters": [ { "type": "string",