From ad4450fa7d19844cbd8240b9f04a1f13a14c8080 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Tue, 24 Jun 2025 01:03:05 -0500 Subject: [PATCH] swagger --- controllers/player_shot_chart_controller.go | 2 +- docs/docs.go | 49 --------------------- docs/swagger.json | 49 --------------------- docs/swagger.yaml | 33 -------------- 4 files changed, 1 insertion(+), 132 deletions(-) diff --git a/controllers/player_shot_chart_controller.go b/controllers/player_shot_chart_controller.go index 4765543..469f237 100644 --- a/controllers/player_shot_chart_controller.go +++ b/controllers/player_shot_chart_controller.go @@ -78,7 +78,7 @@ func ScrapePlayerShotChart(db *gorm.DB) fiber.Handler { // @Param season query int false "Season (e.g., 2023)" // @Success 200 {array} models.PlayerShotChart // @Failure 500 {object} map[string]string -// @Router /api/playershotchart [get] +// //@Router /api/playershotchart [get] func GetPlayerShotChart(db *gorm.DB) fiber.Handler { return func(c *fiber.Ctx) error { var shots []models.PlayerShotChart diff --git a/docs/docs.go b/docs/docs.go index 69138e4..23ad3f8 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -101,55 +101,6 @@ const docTemplate = `{ } } }, - "/api/playershotchart": { - "get": { - "description": "Returns shot-chart points, optionally filtered by playerId and/or season", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "PlayerShotChart" - ], - "summary": "Get shot-chart data", - "parameters": [ - { - "type": "string", - "description": "Player ID (e.g., hardeja01)", - "name": "playerId", - "in": "query" - }, - { - "type": "integer", - "description": "Season (e.g., 2023)", - "name": "season", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/models.PlayerShotChart" - } - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - }, "/api/playertotals": { "get": { "description": "Filter and paginate player totals", diff --git a/docs/swagger.json b/docs/swagger.json index 5030a5b..714c203 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -98,55 +98,6 @@ } } }, - "/api/playershotchart": { - "get": { - "description": "Returns shot-chart points, optionally filtered by playerId and/or season", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "PlayerShotChart" - ], - "summary": "Get shot-chart data", - "parameters": [ - { - "type": "string", - "description": "Player ID (e.g., hardeja01)", - "name": "playerId", - "in": "query" - }, - { - "type": "integer", - "description": "Season (e.g., 2023)", - "name": "season", - "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/models.PlayerShotChart" - } - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - } - } - }, "/api/playertotals": { "get": { "description": "Filter and paginate player totals", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 3914f9e..2df4c44 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -185,39 +185,6 @@ paths: summary: Get player advanced stats tags: - PlayerStats - /api/playershotchart: - get: - consumes: - - application/json - description: Returns shot-chart points, optionally filtered by playerId and/or - season - parameters: - - description: Player ID (e.g., hardeja01) - in: query - name: playerId - type: string - - description: Season (e.g., 2023) - in: query - name: season - type: integer - produces: - - application/json - responses: - "200": - description: OK - schema: - items: - $ref: '#/definitions/models.PlayerShotChart' - type: array - "500": - description: Internal Server Error - schema: - additionalProperties: - type: string - type: object - summary: Get shot-chart data - tags: - - PlayerShotChart /api/playertotals: get: consumes: