Adds client

This commit is contained in:
Julien Lengrand-Lambert
2023-02-02 10:01:08 +01:00
commit a5d93f0c42
29 changed files with 333 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.openapi-generator
.openapi-generator-ignore

5
Apis/BenchmarksApi.http Normal file
View File

@@ -0,0 +1,5 @@
## BenchmarksApi
### GET /benchmarks
# @name benchmarksGet
GET http://api.opendota.com/api/benchmarks

9
Apis/ConstantsApi.http Normal file
View File

@@ -0,0 +1,9 @@
## ConstantsApi
### GET /constants
# @name constantsGet
GET http://api.opendota.com/api/constants
### GET /constants
# @name constantsResourceGet
GET http://api.opendota.com/api/constants/{{resource}}

View File

@@ -0,0 +1,5 @@
## DistributionsApi
### GET /distributions
# @name distributionsGet
GET http://api.opendota.com/api/distributions

5
Apis/ExplorerApi.http Normal file
View File

@@ -0,0 +1,5 @@
## ExplorerApi
### GET /explorer
# @name explorerGet
GET http://api.opendota.com/api/explorer

5
Apis/FindMatchesApi.http Normal file
View File

@@ -0,0 +1,5 @@
## FindMatchesApi
### GET /
# @name findMatchesGet
GET http://api.opendota.com/api/findMatches

5
Apis/HealthApi.http Normal file
View File

@@ -0,0 +1,5 @@
## HealthApi
### GET /health
# @name healthGet
GET http://api.opendota.com/api/health

5
Apis/HeroStatsApi.http Normal file
View File

@@ -0,0 +1,5 @@
## HeroStatsApi
### GET /heroStats
# @name heroStatsGet
GET http://api.opendota.com/api/heroStats

25
Apis/HeroesApi.http Normal file
View File

@@ -0,0 +1,25 @@
## HeroesApi
### GET /heroes
# @name heroesGet
GET http://api.opendota.com/api/heroes
### GET /heroes/{hero_id}/durations
# @name heroesHeroIdDurationsGet
GET http://api.opendota.com/api/heroes/{{hero_id}}/durations
### GET /heroes/{hero_id}/itemPopularity
# @name heroesHeroIdItemPopularityGet
GET http://api.opendota.com/api/heroes/{{hero_id}}/itemPopularity
### GET /heroes/{hero_id}/matches
# @name heroesHeroIdMatchesGet
GET http://api.opendota.com/api/heroes/{{hero_id}}/matches
### GET /heroes/{hero_id}/matchups
# @name heroesHeroIdMatchupsGet
GET http://api.opendota.com/api/heroes/{{hero_id}}/matchups
### GET /heroes/{hero_id}/players
# @name heroesHeroIdPlayersGet
GET http://api.opendota.com/api/heroes/{{hero_id}}/players

17
Apis/LeaguesApi.http Normal file
View File

@@ -0,0 +1,17 @@
## LeaguesApi
### GET /leagues
# @name leaguesGet
GET http://api.opendota.com/api/leagues
### GET /leagues/{league_id}
# @name leaguesLeagueIdGet
GET http://api.opendota.com/api/leagues/{{league_id}}
### GET /leagues/{league_id}/matches
# @name leaguesLeagueIdMatchesGet
GET http://api.opendota.com/api/leagues/{{league_id}}/matches
### GET /leagues/{league_id}/teams
# @name leaguesLeagueIdTeamsGet
GET http://api.opendota.com/api/leagues/{{league_id}}/teams

5
Apis/LiveApi.http Normal file
View File

@@ -0,0 +1,5 @@
## LiveApi
### GET /live
# @name liveGet
GET http://api.opendota.com/api/live

5
Apis/MatchesApi.http Normal file
View File

@@ -0,0 +1,5 @@
## MatchesApi
### GET /matches/{match_id}
# @name matchesMatchIdGet
GET http://api.opendota.com/api/matches/{{match_id}}

5
Apis/MetadataApi.http Normal file
View File

@@ -0,0 +1,5 @@
## MetadataApi
### GET /metadata
# @name metadataGet
GET http://api.opendota.com/api/metadata

View File

@@ -0,0 +1,5 @@
## ParsedMatchesApi
### GET /parsedMatches
# @name parsedMatchesGet
GET http://api.opendota.com/api/parsedMatches

61
Apis/PlayersApi.http Normal file
View File

@@ -0,0 +1,61 @@
## PlayersApi
### GET /players/{account_id}/counts
# @name playersAccountIdCountsGet
GET http://api.opendota.com/api/players/{{account_id}}/counts
### GET /players/{account_id}
# @name playersAccountIdGet
GET http://api.opendota.com/api/players/{{account_id}}
### GET /players/{account_id}/heroes
# @name playersAccountIdHeroesGet
GET http://api.opendota.com/api/players/{{account_id}}/heroes
### GET /players/{account_id}/histograms
# @name playersAccountIdHistogramsFieldGet
GET http://api.opendota.com/api/players/{{account_id}}/histograms/{{field}}
### GET /players/{account_id}/matches
# @name playersAccountIdMatchesGet
GET http://api.opendota.com/api/players/{{account_id}}/matches
### GET /players/{account_id}/peers
# @name playersAccountIdPeersGet
GET http://api.opendota.com/api/players/{{account_id}}/peers
### GET /players/{account_id}/pros
# @name playersAccountIdProsGet
GET http://api.opendota.com/api/players/{{account_id}}/pros
### GET /players/{account_id}/rankings
# @name playersAccountIdRankingsGet
GET http://api.opendota.com/api/players/{{account_id}}/rankings
### GET /players/{account_id}/ratings
# @name playersAccountIdRatingsGet
GET http://api.opendota.com/api/players/{{account_id}}/ratings
### GET /players/{account_id}/recentMatches
# @name playersAccountIdRecentMatchesGet
GET http://api.opendota.com/api/players/{{account_id}}/recentMatches
### POST /players/{account_id}/refresh
# @name playersAccountIdRefreshPost
POST http://api.opendota.com/api/players/{{account_id}}/refresh
### GET /players/{account_id}/totals
# @name playersAccountIdTotalsGet
GET http://api.opendota.com/api/players/{{account_id}}/totals
### GET /players/{account_id}/wardmap
# @name playersAccountIdWardmapGet
GET http://api.opendota.com/api/players/{{account_id}}/wardmap
### GET /players/{account_id}/wl
# @name playersAccountIdWlGet
GET http://api.opendota.com/api/players/{{account_id}}/wl
### GET /players/{account_id}/wordcloud
# @name playersAccountIdWordcloudGet
GET http://api.opendota.com/api/players/{{account_id}}/wordcloud

View File

@@ -0,0 +1,5 @@
## PlayersByRankApi
### GET /playersByRank
# @name playersByRankGet
GET http://api.opendota.com/api/playersByRank

5
Apis/ProMatchesApi.http Normal file
View File

@@ -0,0 +1,5 @@
## ProMatchesApi
### GET /proMatches
# @name proMatchesGet
GET http://api.opendota.com/api/proMatches

5
Apis/ProPlayersApi.http Normal file
View File

@@ -0,0 +1,5 @@
## ProPlayersApi
### GET /proPlayers
# @name proPlayersGet
GET http://api.opendota.com/api/proPlayers

View File

@@ -0,0 +1,5 @@
## PublicMatchesApi
### GET /publicMatches
# @name publicMatchesGet
GET http://api.opendota.com/api/publicMatches

5
Apis/RankingsApi.http Normal file
View File

@@ -0,0 +1,5 @@
## RankingsApi
### GET /rankings
# @name rankingsGet
GET http://api.opendota.com/api/rankings

5
Apis/RecordsApi.http Normal file
View File

@@ -0,0 +1,5 @@
## RecordsApi
### GET /records/{field}
# @name recordsFieldGet
GET http://api.opendota.com/api/records/{{field}}

5
Apis/ReplaysApi.http Normal file
View File

@@ -0,0 +1,5 @@
## ReplaysApi
### GET /replays
# @name replaysGet
GET http://api.opendota.com/api/replays

9
Apis/RequestApi.http Normal file
View File

@@ -0,0 +1,9 @@
## RequestApi
### GET /request/{jobId}
# @name requestJobIdGet
GET http://api.opendota.com/api/request/{{jobId}}
### POST /request/{match_id}
# @name requestMatchIdPost
POST http://api.opendota.com/api/request/{{match_id}}

13
Apis/ScenariosApi.http Normal file
View File

@@ -0,0 +1,13 @@
## ScenariosApi
### GET /scenarios/itemTimings
# @name scenariosItemTimingsGet
GET http://api.opendota.com/api/scenarios/itemTimings
### GET /scenarios/laneRoles
# @name scenariosLaneRolesGet
GET http://api.opendota.com/api/scenarios/laneRoles
### GET /scenarios/misc
# @name scenariosMiscGet
GET http://api.opendota.com/api/scenarios/misc

5
Apis/SchemaApi.http Normal file
View File

@@ -0,0 +1,5 @@
## SchemaApi
### GET /schema
# @name schemaGet
GET http://api.opendota.com/api/schema

5
Apis/SearchApi.http Normal file
View File

@@ -0,0 +1,5 @@
## SearchApi
### GET /search
# @name searchGet
GET http://api.opendota.com/api/search

5
Apis/StatusApi.http Normal file
View File

@@ -0,0 +1,5 @@
## StatusApi
### GET /status
# @name statusGet
GET http://api.opendota.com/api/status

21
Apis/TeamsApi.http Normal file
View File

@@ -0,0 +1,21 @@
## TeamsApi
### GET /teams
# @name teamsGet
GET http://api.opendota.com/api/teams
### GET /teams/{team_id}
# @name teamsTeamIdGet
GET http://api.opendota.com/api/teams/{{team_id}}
### GET /teams/{team_id}/heroes
# @name teamsTeamIdHeroesGet
GET http://api.opendota.com/api/teams/{{team_id}}/heroes
### GET /teams/{team_id}/matches
# @name teamsTeamIdMatchesGet
GET http://api.opendota.com/api/teams/{{team_id}}/matches
### GET /teams/{team_id}/players
# @name teamsTeamIdPlayersGet
GET http://api.opendota.com/api/teams/{{team_id}}/players

76
README.md Normal file
View File

@@ -0,0 +1,76 @@
# OpenDota API - Jetbrains API Client
## OpenAPI File description
# Introduction The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays. You can find data that can be used to convert hero and ability IDs and other information provided by the API from the [dotaconstants](https://github.com/odota/dotaconstants) repository. **Beginning 2018-04-22, the OpenDota API is limited to 50,000 free calls per month and 60 requests/minute** We offer a Premium Tier with unlimited API calls and higher rate limits. Check out the [API page](https://www.opendota.com/api-keys) to learn more.
* API basepath : [http://api.opendota.com/api](http://api.opendota.com/api)
* Version : 19.0.0
## Documentation for API Endpoints
All URIs are relative to *http://api.opendota.com/api*, but will link to the `.http` file that contains the endpoint definition
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*BenchmarksApi* | [**benchmarksGet**](Apis/BenchmarksApi.http#benchmarksget) | **GET** /benchmarks | GET /benchmarks
*ConstantsApi* | [**constantsGet**](Apis/ConstantsApi.http#constantsget) | **GET** /constants | GET /constants
*ConstantsApi* | [**constantsResourceGet**](Apis/ConstantsApi.http#constantsresourceget) | **GET** /constants/{resource} | GET /constants
*DistributionsApi* | [**distributionsGet**](Apis/DistributionsApi.http#distributionsget) | **GET** /distributions | GET /distributions
*ExplorerApi* | [**explorerGet**](Apis/ExplorerApi.http#explorerget) | **GET** /explorer | GET /explorer
*FindMatchesApi* | [**findMatchesGet**](Apis/FindMatchesApi.http#findmatchesget) | **GET** /findMatches | GET /
*HealthApi* | [**healthGet**](Apis/HealthApi.http#healthget) | **GET** /health | GET /health
*HeroStatsApi* | [**heroStatsGet**](Apis/HeroStatsApi.http#herostatsget) | **GET** /heroStats | GET /heroStats
*HeroesApi* | [**heroesGet**](Apis/HeroesApi.http#heroesget) | **GET** /heroes | GET /heroes
*HeroesApi* | [**heroesHeroIdDurationsGet**](Apis/HeroesApi.http#heroesheroiddurationsget) | **GET** /heroes/{hero_id}/durations | GET /heroes/{hero_id}/durations
*HeroesApi* | [**heroesHeroIdItemPopularityGet**](Apis/HeroesApi.http#heroesheroiditempopularityget) | **GET** /heroes/{hero_id}/itemPopularity | GET /heroes/{hero_id}/itemPopularity
*HeroesApi* | [**heroesHeroIdMatchesGet**](Apis/HeroesApi.http#heroesheroidmatchesget) | **GET** /heroes/{hero_id}/matches | GET /heroes/{hero_id}/matches
*HeroesApi* | [**heroesHeroIdMatchupsGet**](Apis/HeroesApi.http#heroesheroidmatchupsget) | **GET** /heroes/{hero_id}/matchups | GET /heroes/{hero_id}/matchups
*HeroesApi* | [**heroesHeroIdPlayersGet**](Apis/HeroesApi.http#heroesheroidplayersget) | **GET** /heroes/{hero_id}/players | GET /heroes/{hero_id}/players
*LeaguesApi* | [**leaguesGet**](Apis/LeaguesApi.http#leaguesget) | **GET** /leagues | GET /leagues
*LeaguesApi* | [**leaguesLeagueIdGet**](Apis/LeaguesApi.http#leaguesleagueidget) | **GET** /leagues/{league_id} | GET /leagues/{league_id}
*LeaguesApi* | [**leaguesLeagueIdMatchesGet**](Apis/LeaguesApi.http#leaguesleagueidmatchesget) | **GET** /leagues/{league_id}/matches | GET /leagues/{league_id}/matches
*LeaguesApi* | [**leaguesLeagueIdTeamsGet**](Apis/LeaguesApi.http#leaguesleagueidteamsget) | **GET** /leagues/{league_id}/teams | GET /leagues/{league_id}/teams
*LiveApi* | [**liveGet**](Apis/LiveApi.http#liveget) | **GET** /live | GET /live
*MatchesApi* | [**matchesMatchIdGet**](Apis/MatchesApi.http#matchesmatchidget) | **GET** /matches/{match_id} | GET /matches/{match_id}
*MetadataApi* | [**metadataGet**](Apis/MetadataApi.http#metadataget) | **GET** /metadata | GET /metadata
*ParsedMatchesApi* | [**parsedMatchesGet**](Apis/ParsedMatchesApi.http#parsedmatchesget) | **GET** /parsedMatches | GET /parsedMatches
*PlayersApi* | [**playersAccountIdCountsGet**](Apis/PlayersApi.http#playersaccountidcountsget) | **GET** /players/{account_id}/counts | GET /players/{account_id}/counts
*PlayersApi* | [**playersAccountIdGet**](Apis/PlayersApi.http#playersaccountidget) | **GET** /players/{account_id} | GET /players/{account_id}
*PlayersApi* | [**playersAccountIdHeroesGet**](Apis/PlayersApi.http#playersaccountidheroesget) | **GET** /players/{account_id}/heroes | GET /players/{account_id}/heroes
*PlayersApi* | [**playersAccountIdHistogramsFieldGet**](Apis/PlayersApi.http#playersaccountidhistogramsfieldget) | **GET** /players/{account_id}/histograms/{field} | GET /players/{account_id}/histograms
*PlayersApi* | [**playersAccountIdMatchesGet**](Apis/PlayersApi.http#playersaccountidmatchesget) | **GET** /players/{account_id}/matches | GET /players/{account_id}/matches
*PlayersApi* | [**playersAccountIdPeersGet**](Apis/PlayersApi.http#playersaccountidpeersget) | **GET** /players/{account_id}/peers | GET /players/{account_id}/peers
*PlayersApi* | [**playersAccountIdProsGet**](Apis/PlayersApi.http#playersaccountidprosget) | **GET** /players/{account_id}/pros | GET /players/{account_id}/pros
*PlayersApi* | [**playersAccountIdRankingsGet**](Apis/PlayersApi.http#playersaccountidrankingsget) | **GET** /players/{account_id}/rankings | GET /players/{account_id}/rankings
*PlayersApi* | [**playersAccountIdRatingsGet**](Apis/PlayersApi.http#playersaccountidratingsget) | **GET** /players/{account_id}/ratings | GET /players/{account_id}/ratings
*PlayersApi* | [**playersAccountIdRecentMatchesGet**](Apis/PlayersApi.http#playersaccountidrecentmatchesget) | **GET** /players/{account_id}/recentMatches | GET /players/{account_id}/recentMatches
*PlayersApi* | [**playersAccountIdRefreshPost**](Apis/PlayersApi.http#playersaccountidrefreshpost) | **POST** /players/{account_id}/refresh | POST /players/{account_id}/refresh
*PlayersApi* | [**playersAccountIdTotalsGet**](Apis/PlayersApi.http#playersaccountidtotalsget) | **GET** /players/{account_id}/totals | GET /players/{account_id}/totals
*PlayersApi* | [**playersAccountIdWardmapGet**](Apis/PlayersApi.http#playersaccountidwardmapget) | **GET** /players/{account_id}/wardmap | GET /players/{account_id}/wardmap
*PlayersApi* | [**playersAccountIdWlGet**](Apis/PlayersApi.http#playersaccountidwlget) | **GET** /players/{account_id}/wl | GET /players/{account_id}/wl
*PlayersApi* | [**playersAccountIdWordcloudGet**](Apis/PlayersApi.http#playersaccountidwordcloudget) | **GET** /players/{account_id}/wordcloud | GET /players/{account_id}/wordcloud
*PlayersByRankApi* | [**playersByRankGet**](Apis/PlayersByRankApi.http#playersbyrankget) | **GET** /playersByRank | GET /playersByRank
*ProMatchesApi* | [**proMatchesGet**](Apis/ProMatchesApi.http#promatchesget) | **GET** /proMatches | GET /proMatches
*ProPlayersApi* | [**proPlayersGet**](Apis/ProPlayersApi.http#proplayersget) | **GET** /proPlayers | GET /proPlayers
*PublicMatchesApi* | [**publicMatchesGet**](Apis/PublicMatchesApi.http#publicmatchesget) | **GET** /publicMatches | GET /publicMatches
*RankingsApi* | [**rankingsGet**](Apis/RankingsApi.http#rankingsget) | **GET** /rankings | GET /rankings
*RecordsApi* | [**recordsFieldGet**](Apis/RecordsApi.http#recordsfieldget) | **GET** /records/{field} | GET /records/{field}
*ReplaysApi* | [**replaysGet**](Apis/ReplaysApi.http#replaysget) | **GET** /replays | GET /replays
*RequestApi* | [**requestJobIdGet**](Apis/RequestApi.http#requestjobidget) | **GET** /request/{jobId} | GET /request/{jobId}
*RequestApi* | [**requestMatchIdPost**](Apis/RequestApi.http#requestmatchidpost) | **POST** /request/{match_id} | POST /request/{match_id}
*ScenariosApi* | [**scenariosItemTimingsGet**](Apis/ScenariosApi.http#scenariositemtimingsget) | **GET** /scenarios/itemTimings | GET /scenarios/itemTimings
*ScenariosApi* | [**scenariosLaneRolesGet**](Apis/ScenariosApi.http#scenarioslanerolesget) | **GET** /scenarios/laneRoles | GET /scenarios/laneRoles
*ScenariosApi* | [**scenariosMiscGet**](Apis/ScenariosApi.http#scenariosmiscget) | **GET** /scenarios/misc | GET /scenarios/misc
*SchemaApi* | [**schemaGet**](Apis/SchemaApi.http#schemaget) | **GET** /schema | GET /schema
*SearchApi* | [**searchGet**](Apis/SearchApi.http#searchget) | **GET** /search | GET /search
*StatusApi* | [**statusGet**](Apis/StatusApi.http#statusget) | **GET** /status | GET /status
*TeamsApi* | [**teamsGet**](Apis/TeamsApi.http#teamsget) | **GET** /teams | GET /teams
*TeamsApi* | [**teamsTeamIdGet**](Apis/TeamsApi.http#teamsteamidget) | **GET** /teams/{team_id} | GET /teams/{team_id}
*TeamsApi* | [**teamsTeamIdHeroesGet**](Apis/TeamsApi.http#teamsteamidheroesget) | **GET** /teams/{team_id}/heroes | GET /teams/{team_id}/heroes
*TeamsApi* | [**teamsTeamIdMatchesGet**](Apis/TeamsApi.http#teamsteamidmatchesget) | **GET** /teams/{team_id}/matches | GET /teams/{team_id}/matches
*TeamsApi* | [**teamsTeamIdPlayersGet**](Apis/TeamsApi.http#teamsteamidplayersget) | **GET** /teams/{team_id}/players | GET /teams/{team_id}/players
_This client was generated by the jetbrains-http-client of OpenAPI Generator_