GET /sonolus/{type}/{itemName}/community/info
/sonolus/{type}/{itemName}/community/info provides community information of item of name {itemName}, and is used by Sonolus app to populate server item details view's community section.
URL Parameters
| URL Parameter | Value | Description |
|---|---|---|
type | string | posts, playlists, levels, skins, backgrounds, effects, particles, engines, or replays. |
itemName | string | Name of item. |
Query Parameters
| Query Parameter | Value | Description |
|---|---|---|
localization | string | See localization. |
| Configuration Options | any | See Options Query Parameters. |
Request Headers
| Header | Value | Description |
|---|---|---|
Sonolus-Session | string | Optional, see Sonolus-Session. |
Request Body
None.
Response Code
| Code | Description |
|---|---|
200 OK | |
401 Unauthorized | Authentication required or expired. |
404 Not Found |
Response Headers
| Header | Value | Description |
|---|---|---|
Sonolus-Version | string | Optional, see Sonolus-Version. |
Response Body
ts
type ServerItemCommunityInfo = {
actions: ServerForm[]
topComments: ServerItemCommunityComment[]
}Examples
json
{
"actions": [
// ...
],
"topComments": [
// ...
]
}