fix(swagger): Fix swagger/OpenAPI defs for /api/anonymous/* endpoints (#108999)

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
This commit is contained in:
Dave Henderson
2025-07-31 14:08:42 -04:00
committed by GitHub
parent 3587439fb8
commit e0dd56e4c7
4 changed files with 113 additions and 109 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ func (api *AnonDeviceServiceAPI) RegisterAPIEndpoints() {
})
}
// swagger:route GET /stats devices listDevices
// swagger:route GET /anonymous/devices devices listDevices
//
// # Lists all devices within the last 30 days
//
@@ -91,7 +91,7 @@ func (api *AnonDeviceServiceAPI) ListDevices(c *contextmodel.ReqContext) respons
return response.JSON(http.StatusOK, resDevices)
}
// swagger:route POST /search devices SearchDevices
// swagger:route GET /anonymous/search devices SearchDevices
//
// # Lists all devices within the last 30 days
//