Skip to content

Commit

Permalink
feat(spec): add /v2/mounts
Browse files Browse the repository at this point in the history
Closes #105
  • Loading branch information
TheMrMilchmann committed Jan 16, 2021
1 parent a7678a8 commit 9ca4b1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/0.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ _Not Released Yet_
- Added support for `/v2/finishers`. [[GH-79](https://github.com/GW2ToolBelt/api-generator/issues/79)]
- Added support for `/v2/guild/upgrades`. [[GH-92](https://github.com/GW2ToolBelt/api-generator/issues/92)]
- Added support for `/v2/minis`. [[GH-104](https://github.com/GW2ToolBelt/api-generator/issues/104)]
- Added support for `/v2/mounts`. [[GH-105](https://github.com/GW2ToolBelt/api-generator/issues/105)]
- Added support for `/v2/pets`. [[GH-110](https://github.com/GW2ToolBelt/api-generator/issues/110)]
- Added support for `/v2/quaggans`. [[GH-122](https://github.com/GW2ToolBelt/api-generator/issues/122)]
- Added support for `/v2/raids`. [[GH-125](https://github.com/GW2ToolBelt/api-generator/issues/125)]
Expand Down
6 changes: 6 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 @@ -1043,6 +1043,12 @@ internal val GW2v2 = GW2APIVersion {
CamelCase("item_id").."ItemID"(STRING, "the ID of the item which unlocks the mini")
})
}
"/Mounts" {
summary = "Returns information about the available sub-endpoints."
cache = DURATION_INFINITE // We don't expect this to change. Ever.

schema(array(STRING, "the available sub-endpoints"))
}
"/Outfits" {
summary = "Returns information about outfits."
cache = 1.hours
Expand Down
3 changes: 3 additions & 0 deletions src/test/kotlin/com/gw2tb/apigen/test/spec/GW2v2.kt
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ class GW2v2 : SpecTest(
.localized()
.queryTypes(BY_ID, BY_IDS, BY_PAGE)

expectEndpoint("/Mounts")
.cacheTime(DURATION_INFINITE)

expectEndpoint("/Outfits")
.cacheTime(1.hours)
.localized()
Expand Down

0 comments on commit 9ca4b1c

Please sign in to comment.