swagger fix

This commit is contained in:
Ravi Prasad
2025-06-18 22:59:04 -05:00
parent 5775a42538
commit fd495d59ef
6 changed files with 6 additions and 461 deletions
+2 -2
View File
@@ -45,14 +45,14 @@ type AdvancedStatsResponse struct {
// }
// ScrapePlayerAdvancedStats godoc
// @ignore
// @Summary Scrape player advanced stats from BR website
// @Tags PlayerStats
// @Param season query int true "Season (e.g. 2025)"
// @Param isPlayoff query bool false "Whether playoffs?"
// @Success 200 {object} map[string]string
// @Failure 400,500 {object} map[string]string
// @Router /api/playeradvancedstats/scrape [get]
// @ignore
// //@Router /api/playeradvancedstats/scrape [get]
func ScrapePlayerAdvancedStats(db *gorm.DB) fiber.Handler {
return func(c *fiber.Ctx) error {
season := c.QueryInt("season", 0)
+2 -2
View File
@@ -30,6 +30,7 @@ import (
// }
// ScrapePlayerShotChart godoc
// @ignore
// @Summary Scrape a player's shot-chart from BR website
// @Description Scrapes seasons [startSeason…endSeason] for the given playerId
//
@@ -43,8 +44,7 @@ import (
// @Param endSeason query int true "End season (e.g. 2021)"
// @Success 200 {object} map[string]string
// @Failure 400,500 {object} map[string]string
// @Router /api/playershotchart/scrape [get]
// @ignore
// //@Router /api/playershotchart/scrape [get]
func ScrapePlayerShotChart(db *gorm.DB) fiber.Handler {
return func(c *fiber.Ctx) error {
pid := c.Query("playerId")
+2 -2
View File
@@ -47,14 +47,14 @@ var totalSortMap = map[string]string{
// }
// ScrapePlayerTotalStats godoc
// @ignore
// @Summary Scrape player total stats from BR website
// @Tags PlayerTotals
// @Param season query int true "Season (e.g. 2025)"
// @Param isPlayoff query bool false "Whether playoffs?"
// @Success 200 {object} map[string]string
// @Failure 400,500 {object} map[string]string
// @Router /api/playertotals/scrape [get]
// @ignore
// //@Router /api/playertotals/scrape [get]
func ScrapePlayerTotalStats(db *gorm.DB) fiber.Handler {
return func(c *fiber.Ctx) error {
season := c.QueryInt("season", 0)