Skip to content

Latest commit

 

History

History
64 lines (38 loc) · 1.65 KB

DefaultApi.md

File metadata and controls

64 lines (38 loc) · 1.65 KB

DefaultApi

All URIs are relative to http://localhost:8080

Method HTTP request Description
apiV1PlayersActiveGet GET /api/v1/players/active Get active players by Career year
apiV1PlayersMostRunsGet GET /api/v1/players/most_runs Get player who has the most_runs

apiV1PlayersActiveGet

ActivePlayers apiV1PlayersActiveGet(careerYear)

Get active players by Career year

Returns a list of player names by Career year

Parameters

Name Type Description Notes
careerYear Integer year that the player is still in career [default to null]

Return type

ActivePlayers

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

apiV1PlayersMostRunsGet

MostRuns apiV1PlayersMostRunsGet(careerEndYear)

Get player who has the most_runs

Returns a player name and his most_runs

Parameters

Name Type Description Notes
careerEndYear Integer year that the player ends his career [optional] [default to null]

Return type

MostRuns

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json