Remove unused tierlist endpoint.

This commit is contained in:
zkldi
2021-12-16 18:51:06 +00:00
parent 852545ae9c
commit 41935029c8
-67
View File
@@ -251,73 +251,6 @@ GET /api/v1/games/iidx/SP/charts/some_chart_id
*****
## Return tierlist information for this chart
`GET /api/v1/games/:game/:playtype/charts/:chartID/tierlist`
Retrieve the tierlist information for this chart. If no tierlistID is provided, this falls back
to the GPT's default.
!!! warning
If the GPT has no default tierlist, then the server will return a 501.
### Parameters
| Property | Type | Description |
| :: | :: | :: |
| `tierlistID` | string, Optional | Optionally, provide a tierlist ID to use instead of the default. |
### Response
| Property | Type | Description |
| :: | :: | :: |
| `tierlist` | TierlistDocument | The related tierlist document. |
| `tierlistData` | Array<TierlistDataDocument> | All of the tierlist data for this chart. |
### Example
#### Request
```
GET /api/v1/games/iidx/SP/charts/chart_id/tierlist
```
#### Response
```js
{
tierlist: {
game: "iidx",
playtype: "SP",
name: "Default IIDX SP Tierlist",
// ...
},
tierlistData: [{
type: "lamp",
key: "HARD CLEAR",
chartID: "chart_id",
data: {
value: 12.5,
humanised: "C",
flags: {}
},
// ...
}, {
type: "lamp",
key: "CLEAR",
chartID: "chart_id",
data: {
value: 12.4,
humanised: "C",
flags: {
idvDifference: true
}
},
// ...
}]
}
```
*****
## Retrieve playcount for this chart.
`GET /api/v1/games/:game/:playtype/charts/:chartID/playcount`