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
-113
View File
@@ -185,40 +185,6 @@ paths:
summary: Get player advanced stats
tags:
- PlayerStats
/api/playeradvancedstats/scrape:
get:
parameters:
- description: Season (e.g. 2025)
in: query
name: season
required: true
type: integer
- description: Whether playoffs?
in: query
name: isPlayoff
type: boolean
responses:
"200":
description: OK
schema:
additionalProperties:
type: string
type: object
"400":
description: Bad Request
schema:
additionalProperties:
type: string
type: object
"500":
description: Internal Server Error
schema:
additionalProperties:
type: string
type: object
summary: Scrape player advanced stats from BR website
tags:
- PlayerStats
/api/playershotchart:
get:
consumes:
@@ -252,51 +218,6 @@ paths:
summary: Get shot-chart data
tags:
- PlayerShotChart
/api/playershotchart/scrape:
get:
consumes:
- application/json
description: Scrapes seasons [startSeason…endSeason] for the given playerId
parameters:
- description: Player ID (e.g. derozde01)
in: query
name: playerId
required: true
type: string
- description: Start season (e.g. 2024)
in: query
name: startSeason
required: true
type: integer
- description: End season (e.g. 2021)
in: query
name: endSeason
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
additionalProperties:
type: string
type: object
"400":
description: Bad Request
schema:
additionalProperties:
type: string
type: object
"500":
description: Internal Server Error
schema:
additionalProperties:
type: string
type: object
summary: Scrape a player's shot-chart from BR website
tags:
- PlayerShotChart
/api/playertotals:
get:
consumes:
@@ -354,40 +275,6 @@ paths:
summary: Get player total stats
tags:
- PlayerTotals
/api/playertotals/scrape:
get:
parameters:
- description: Season (e.g. 2025)
in: query
name: season
required: true
type: integer
- description: Whether playoffs?
in: query
name: isPlayoff
type: boolean
responses:
"200":
description: OK
schema:
additionalProperties:
type: string
type: object
"400":
description: Bad Request
schema:
additionalProperties:
type: string
type: object
"500":
description: Internal Server Error
schema:
additionalProperties:
type: string
type: object
summary: Scrape player total stats from BR website
tags:
- PlayerTotals
schemes:
- http
- https