Artists
All actions for the "/artists" endpoint.
Create an artist
POST https://api.lolwallpapers.net/beta/artists
Request Body
name
string
The name of the artist.
links
array
An array of valid URLs that lead to the artist's pages (deviantart, artstation, twitter, etc.)
{
"status": "success",
"data": {
"id": "BA7R"
}
}{
"status": "fail",
"data": {
"name": [
"This value should not be blank."
]
}
}{
"status": "fail",
"data": "You need to confirm your email address first."
}Get a list of artists
GET https://api.lolwallpapers.net/beta/artists
Query Parameters
search
string
Search through all artists names.
sort
string
Sort by: - name - wallpapers - views - downloads - created_at (default) - updated_at
order
string
Order by: - asc - desc (default)
limit
number
The amount of artists to display per page. Default: 20 Minimum: 1 Maximum: 50
page
number
The page to display. Default: 1
{
"status": "success",
"data": [
{
"id": "BA7R",
"name": "John Doe",
"links": [
"https://www.deviantart.com/johndoe"
],
"wallpapers": 0,
"created_by": {
"id": "Q6lB",
"display_name": "John Doe"
},
"created_at": 1596650119,
"updated_at": 1596650119
},
]
}{
"status": "fail",
"data": {
"order": [
"The value you selected is not a valid choice."
]
}
}Get an artist
GET https://api.lolwallpapers.net/beta/artists/:id
Path Parameters
id
string
The artist ID.
{
"status": "success",
"data": {
"id": "BA7R",
"name": "John Doe",
"links": [
"https://www.deviantart.com/johndoe"
],
"wallpapers": 0,
"created_by": {
"id": "Q6lB",
"display_name": "John Doe"
},
"created_at": 1596650119,
"updated_at": 1596650119
}
}{
"status": "success",
"data": "Not Found."
}Edit an artist
PATCH https://api.lolwallpapers.net/beta/artists/:id
Path Parameters
string
The artists ID.
Request Body
name
string
The name of the artist.
links
string
An array of valid URLs that lead to the artist's pages (deviantart, artstation, twitter, etc.)
{
"status": "fail",
"data": {
"links[0]": [
"This value is not a valid URL."
]
}
}{
"status": "success",
"data": "Not Found."
}Last updated
Was this helpful?