Comments

All actions for the "/wallpapers/:id/comments" endpoint.

Create a comment on a wallpaper

POST https://api.lolwallpapers.net/beta/wallpapers/:id/comments

Path Parameters

Name
Type
Description

id

string

The wallpaper ID.

Request Body

Name
Type
Description

content

string

The content of the comment. (6 caracters minimum)

Get a wallpaper comments

GET https://api.lolwallpapers.net/beta/wallpapers/:id/comments

Path Parameters

Name
Type
Description

id

string

The wallpaper ID.

Query Parameters

Name
Type
Description

sort

string

Sort by: - created_at (default) - updated_at

order

string

Order by: - asc - desc (default)

limit

string

The amount of comments to display per page. Default: 20 Minimum: 1 Maximum: 50

page

string

The page to display. Default: 1 Minimum: 1

Edit a wallpaper's comment

PATCH https://api.lolwallpapers.net/beta/wallpapers/:wid/comments:cid

Path Parameters

Name
Type
Description

wid

string

The wallpaper ID.

cid

string

The comment ID.

Request Body

Name
Type
Description

content

string

The content of the comment.

The user must be the author of the comment to be able to edit it.

Delete a wallpaper's comment

DELETE https://api.lolwallpapers.net/beta/wallpalers/:wid/comments/:cid

Path Parameters

Name
Type
Description

wid

string

The wallpaper ID.

cid

string

The comment ID.

The user must be the author of the comment to be able to delete it.

Like a wallpaper's comment

POST https://api.lolwallpapers.net/beta/wallpapers/:wid/comments/:cid/like

Path Parameters

Name
Type
Description

wid

string

The wallpaper ID.

cid

string

The comment ID.

If the user has already liked the comment, his "like" will be removed.

Last updated

Was this helpful?