Skip to content

Commit

Permalink
feat(spec): add /v2/gliders
Browse files Browse the repository at this point in the history
Closes #80, #155.
  • Loading branch information
TheMrMilchmann committed Nov 17, 2020
1 parent dab3e0a commit 81e657d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/0.2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ _Not Released Yet_
### Improvements

- Endpoints:
- Added support for `/v2/gliders`. [[GH-80](https://github.com/GW2ToolBelt/api-generator/issues/80)]
- Added support for `/v2/materials`. [[GH-103](https://github.com/GW2ToolBelt/api-generator/issues/103)]
- Added support for V2 schema `2020-11-17T00:30:00.000Z`.
- Path-parameters and query-parameters now have a `camelCaseName` property.
Expand Down
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(record(name = "Glider", description = "Information about a glider.") {
"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 81e657d

Please sign in to comment.