GET api/v1/games/{id}/powerleveling/categories
Query boosting categories for a specific game.
i. Request Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | int | Yes | Game ID. |
ii. Response Example
Success Response
{
"code": 10000,
"message": "Operation Successful.",
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"data": [
{
"id": 516,
"name": "Boosting",
"parentId": 0,
"isLastCategory": false,
"sequence": 100,
"subCategorys": []
},
{
"id": 169,
"name": "Leveling",
"parentId": 0,
"isLastCategory": false,
"sequence": 100,
"subCategorys": []
}
]
}
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | int | Response code. 10000 indicates success, other values indicate an error. |
| message | string | Response message. Contains error details on failure. |
| requestId | string | Unique identifier for the request, used for tracking. |
| data | array | List of powerleveling categories for the specified game. |
| data[].id | int | Unique identifier of the category. |
| data[].name | string | Name of the category. |
| data[].parentId | int | ID of the parent category. 0 indicates a root category. |
| data[].isLastCategory | boolean | Indicates whether this is the last level category (no sub-categories). |
| data[].sequence | int | Display order of the category. Lower values appear first. |
| data[].subCategorys | array | List of sub-categories. Empty array if no sub-categories exist. |
iii. Error Response Example
Error Response
{
"code": 10002,
"message": "Game not found.",
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}Common Error Codes
| Parameter | Type | Description |
|---|---|---|
| code | int | Error code. Common values: 10002 (Invalid parameter), 50001 (Internal server error). |
| message | string | Detailed error message explaining what went wrong. |
| requestId | string | Unique identifier for the request, used for tracking. |