Skip to content

Commit

Permalink
feat(spec): add /v1/items
Browse files Browse the repository at this point in the history
Closes #167
  • Loading branch information
TheMrMilchmann committed May 1, 2021
1 parent bc6a862 commit c9dfc48
Show file tree
Hide file tree
Showing 3 changed files with 8 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 @@ -8,6 +8,7 @@ _Not Released Yet_
- Added support for `/v1/build`. [[GH-159](https://github.com/GW2ToolBelt/api-generator/issues/159)]
- Added support for `/v1/event_details`. [[GH-162](https://github.com/GW2ToolBelt/api-generator/issues/162)]
- Added support for `/v1/files`. [[GH-164](https://github.com/GW2ToolBelt/api-generator/issues/164)]
- Added support for `/v1/items`. [[GH-167](https://github.com/GW2ToolBelt/api-generator/issues/167)]
- Added support for `/v1/map_names`. [[GH-169](https://github.com/GW2ToolBelt/api-generator/issues/169)]
- Added support for `/v1/skin_details`. [[GH-158](https://github.com/GW2ToolBelt/api-generator/issues/158)]
- Added support for `/v1/skins`. [[GH-157](https://github.com/GW2ToolBelt/api-generator/issues/157)]
Expand Down
5 changes: 5 additions & 0 deletions src/main/kotlin/com/gw2tb/apigen/internal/spec/GW2v1.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ internal val GW2v1 = GW2APIVersion({ APIVersionBuilder.V1() }) {
}
))
}
"/Items" {
summary = "Returns the IDs of the available items."

schema(array(INTEGER, "the IDs of the available items"))
}
"/map_names"(endpoint = "MapNames") {
summary = "Returns information about maps."

Expand Down
2 changes: 2 additions & 0 deletions src/test/kotlin/com/gw2tb/apigen/test/spec/GW2v1.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class GW2v1 : SpecTest<APIQuery.V1, APIType.V1, GW2v1.ExpectedAPIv1Query>(

expectQuery("/Files")

expectQuery("/Items")

expectQuery(
"/map_names",
isLocalized = true
Expand Down

0 comments on commit c9dfc48

Please sign in to comment.