Skip to content

Commit

Permalink
feat(spec): add /v2/wvw/matches
Browse files Browse the repository at this point in the history
Closes #139
  • Loading branch information
TheMrMilchmann committed Jun 11, 2021
1 parent f82316c commit 27f4cdb
Show file tree
Hide file tree
Showing 4 changed files with 4,807 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/0.4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ _Released 2021 Jun 13_
- Added support for `/v2/pvp/standings`. [[GH-120](https://github.com/GW2ToolBelt/api-generator/issues/120)]
- Added support for `/v2/pvp/stats`. [[GH-121](https://github.com/GW2ToolBelt/api-generator/issues/121)]
- Added support for `/v2/recipes/search`. [[GH-127](https://github.com/GW2ToolBelt/api-generator/issues/127)]
- Added support for `/v2/wvw/matches`. [[GH-139](https://github.com/GW2ToolBelt/api-generator/issues/139)]
- Added support for `/v2/wvw/matches/overview`. [[GH-140](https://github.com/GW2ToolBelt/api-generator/issues/140)]
- Added support for `/v2/wvw/matches/scores`. [[GH-141](https://github.com/GW2ToolBelt/api-generator/issues/141)]
- Added support for `/v2/wvw/matches/stats`. [[GH-142](https://github.com/GW2ToolBelt/api-generator/issues/142)]
Expand Down
39 changes: 39 additions & 0 deletions src/main/kotlin/com/gw2tb/apigen/internal/spec/GW2v2.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2490,6 +2490,45 @@ internal val GW2v2 = GW2APIVersion({ APIVersionBuilder.V2() }) {
)
})
}
"/WvW/Matches" {
summary = "Returns information about the active WvW matches."
cache = 1.seconds

supportedQueries(BY_ID, BY_IDS, BY_PAGE)
schema(record(name = "WvWMatchOverview", description = "General information about a WvW match.") {
CamelCase("id").."ID"(STRING, "the match's ID")
SerialName("start_time").."StartTime"(STRING, "the ISO-8601 standard timestamp of when the match's start")
SerialName("end_time").."EndTime"(STRING, "the ISO-8601 standard timestamp of when the match's end")
"Scores"(map(STRING, INTEGER), "the total scores by team color")
"Worlds"(map(STRING, INTEGER), "the IDs of the three primary servers by team color")
SerialName("all_worlds").."AllWorlds"(map(STRING, array(INTEGER)), "the IDs of the servers by team color")
"Deaths"(map(STRING, INTEGER), "the total deaths by team color")
"Kills"(map(STRING, INTEGER), "the total kills by team color")
SerialName("victory_points").."VictoryPoints"(map(STRING, INTEGER), "the victory points by team color")
"Skirmishes"(
description = "the match's skirmishes",
type = array(record(name = "Skirmish", description = "Information about skirmish scores.") {
CamelCase("id").."ID"(STRING, "the skirmish's ID")
"Scores"(map(STRING, INTEGER), "the scores by team color")
SerialName("map_scores").."MapScores"(
description = "the scores by map",
type = array(record(name = "MapScores", description = "Map-specific information about scores.") {
"Type"(STRING, "the map's type (i.e. \"Center\", \"RedHome\", \"BlueHome\", or \"GreenHome\")")
"Scores"(map(STRING, INTEGER), "the scores by team color")
})
)
})
)
"Maps"(
description = "the total scores by map",
type = array(record(name = "Map", description = "Map-specific information about scores.") {
CamelCase("id").."ID"(STRING, "the map's ID")
"Type"(STRING, "the map's type (i.e. \"Center\", \"RedHome\", \"BlueHome\", or \"GreenHome\")")
"Scores"(map(STRING, INTEGER), "the scores by team color")
})
)
})
}
"/WvW/Matches/Overview" {
summary = "Returns general information about the active WvW matches."
cache = 1.seconds
Expand Down
Loading

0 comments on commit 27f4cdb

Please sign in to comment.