Skip to content

Commit

Permalink
feat(spec): add /v2/gliders
Browse files Browse the repository at this point in the history
Closes #80.
  • Loading branch information
TheMrMilchmann committed Oct 1, 2020
1 parent 2da9fb4 commit 60b6c5c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/changelog/0.2.0.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.2.0

_Not Released Yet_
_Not Released Yet_

### Improvements

- Endpoints:
- Added support for `/v2/gliders`. [[GH-80](https://github.com/GW2ToolBelt/api-generator/issues/80)]
18 changes: 18 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 @@ -526,6 +526,24 @@ internal val GW2v2 = GW2APIVersion {
"Icon"(STRING, "the URL to the image")
})
}
"/Gliders" {
summary = "Returns information about gliders."
cache = 1.hours
isLocalized = true

supportedQueries(BY_ID, BY_IDS, BY_PAGE)
schema(map {
"Id"(INTEGER, "the glider's ID")
"Name"(STRING, "the glider's name")
"Description"(STRING, "the glider's description")
"Icon"(STRING, "the URL for the glider's icon")
"Order"(INTEGER, "a (non-unique) number that can be used as basis to sort the list of gliders")
SerialName("default_dyes").."DefaultDyes"(
description = "the IDs of the dyes that are applied to the glider by default",
type = array(INTEGER)
)
})
}
"/Items" {
summary = "Returns information about items in the game."
cache = 1.hours
Expand Down

0 comments on commit 60b6c5c

Please sign in to comment.