Skip to content

Commit e30825b

Browse files
committed
docs: extended proposal for endpoints
1 parent 29ec6c2 commit e30825b

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

docs/APIContract.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ The base URL for an API should be: _baseURL_/_apiVersion_/ meaning even somethin
99
In order to provide a consistent API a metadata endpoint should be provided under _baseURL_/.well-known/pathofbuilding this endpoint should provide information about the API and the version of the API.
1010
Furthermore this may allow having custom endpoints for the API.
1111

12+
| Feature | Field | Type | Description |
13+
| ---------------- | ------------- | ---- | --------------------------------------------------------------------------------- |
14+
| League Filtering | league_filter | bool | This can be used to indicate whether the API supports filtering based on leagues |
15+
| Gem Filtering | gem_filter | bool | This can be used to indicate whether the API supports filtering based on gems |
16+
1217
## Version 1
1318

1419
### Response and Request types
@@ -28,10 +33,29 @@ Furthermore this may allow having custom endpoints for the API.
2833
<summary><code>GET</code> <code><b>/v1/builds</b></code> <code>(Lists multiple builds)</code></summary>
2934

3035
#### Parameters
36+
> Query Parameters
37+
38+
| name | type | data type | description |
39+
| ------ | -------- | --------- | --------------------------------------- |
40+
| page | optional | integer | Used for pagination |
41+
| league | optional | string | Used to limit builds to a league |
42+
| gems | optional | string | Used to limit builds with specific gems |
43+
44+
##### League
45+
46+
The values should be matching what Grinding Gear Games will be using for the teaser part of the website, such as: _https://www.pathofexile.com/settlers_ or _https://www.pathofexile.com/affliction_. This allows for easier mapping of the data as neither PoB nor the API will be required to wait for either party.
47+
48+
These links are generally available via poewiki see: https://www.poewiki.net/wiki/Necropolis_league _Official Page_.
49+
50+
Example values:
3151

32-
| name | type | data type | description |
33-
| ---- | -------- | --------- | ------------------- |
34-
| page | optional | integer | Used for pagination |
52+
| Patch | League | value | url |
53+
| ----- | ---------------------- | ---------- | -------------------------------------- |
54+
| 3.25 | Settlers of Kalguur | settlers | https://www.pathofexile.com/settlers |
55+
| 3.24 | Necropolis | necropolis | https://www.pathofexile.com/necropolis |
56+
| 3.23 | Affliction | affliction | https://www.pathofexile.com/affliction |
57+
| 3.22 | Trial of the Ancestors | ancestor | https://www.pathofexile.com/ancestor |
58+
| 3.4 | Delve | delve | https://www.pathofexile.com/delve |
3559

3660
#### Responses
3761

0 commit comments

Comments
 (0)