Skip to content

Artists

Everything about Argentine Rock artists and their contributions to music history.

Note: You will need to authenticate yourself to access some of these endpoints using the POSTAuthenticate a user endpoint.


Get all artists

GET
/api/v1/artists

Get a list of all legendary Argentine Rock artists and explore their contributions to the music scene. You can get one using the GETGet an artist endpoint.

Parameters

Query Parameters

limit

The number of items to return

Typeinteger
Examples
102050
Format"int64"
Default10
offset

The number of items to skip before starting to collect the result set

Typeinteger
Examples
123456
Format"int64"
Default0

Responses

Success Response

The request was successful and returns a list of artists.

Response Format

The response includes:

  • A data array containing artist objects
  • Pagination information

Note: You can use the pagination parameters to navigate through large result sets.

application/json
JSON
{
"data": [
{
"id": 1,
"name": "Charly García",
"description": "One of the most influential rock musicians in Argentine history.",
"image": "https://cdn.rock-legends.com/photos/charly.jpg",
"band": "Sui Generis"
}
],
"meta": {
"limit": 10,
"offset": 0,
"total": 100,
"next": "/artists?limit=10&offset=10"
}
}

Playground

Server
Variables
Key
Value

Samples


Add a new artist

POST
/api/v1/artists

Add a new legendary Argentine Rock artist. Make sure they truly deserve the title! You can view it later using the GETGet an artist endpoint.

Authorizations

bearerAuth
TypeHTTP (bearer)
or
apiKeyHeader
TypeAPI Key (header: X-API-Key)

Request Body

application/json
JSON
{
"name": "Charly García",
"description": "One of the most influential rock musicians in Argentine history.",
"image": "https://cdn.rock-legends.com/photos/charly.jpg",
"band": "Sui Generis"
}

Responses

Artist Created Successfully

The artist has been successfully added to our database.

Response Details

The response includes the complete artist object with:

  • A newly assigned unique id
  • All the information you provided in the request
application/json
JSON
{
"id": 1,
"name": "Charly García",
"description": "One of the most influential rock musicians in Argentine history.",
"image": "https://cdn.rock-legends.com/photos/charly.jpg",
"band": "Sui Generis"
}

Playground

Authorization
Body

Samples


Get an artist

GET
/api/v1/artists/{artistId}

Learn more about a specific Argentine Rock artist and their legacy. You can update it using the PUTUpdate an artist endpoint.

Parameters

Path Parameters

artistId*
Typeinteger
Required
Example1
Format"int64"

Responses

Artist Found

The requested artist was found and returned successfully.

Response Format

The response includes the complete artist object with all available details:

  • id: Unique identifier for the artist
  • name: Full name of the artist
  • description: Biographical information
  • image: URL to the artist's photo
  • band: Primary band association
application/json
JSON
{
"id": 1,
"name": "Charly García",
"description": "One of the most influential rock musicians in Argentine history.",
"image": "https://cdn.rock-legends.com/photos/charly.jpg",
"band": "Sui Generis"
}

Playground

Variables
Key
Value

Samples


Update an artist

PUT
/api/v1/artists/{artistId}

Update the information of a legendary Argentine Rock artist. Make sure to provide accurate data. You can get the current data using the GETGet an artist endpoint.

Authorizations

bearerAuth
TypeHTTP (bearer)
or
apiKeyHeader
TypeAPI Key (header: X-API-Key)

Parameters

Path Parameters

artistId*
Typeinteger
Required
Example1
Format"int64"

Request Body

application/json
JSON
{
"id": 1,
"name": "Charly García",
"description": "One of the most influential rock musicians in Argentine history.",
"image": "https://cdn.rock-legends.com/photos/charly.jpg",
"band": "Sui Generis"
}

Responses

Artist Updated Successfully

The artist information has been successfully updated in our database.

Response Details

The response includes the complete updated artist object with all the changes you made.

Note: All fields are returned in the response, even if you only updated some of them.

application/json
JSON
{
"id": 1,
"name": "Charly García",
"description": "One of the most influential rock musicians in Argentine history.",
"image": "https://cdn.rock-legends.com/photos/charly.jpg",
"band": "Sui Generis"
}

Playground

Authorization
Variables
Key
Value
Body

Samples


Deprecated

Delete an artist

DELETE
/api/v1/artists/{artistId}

This endpoint was used to delete artists. Unfortunately, that caused a lot of controversy. So, this endpoint is now deprecated and should not be used anymore. You can use the PUTUpdate an artist endpoint instead.

Authorizations

bearerAuth
TypeHTTP (bearer)
or
apiKeyHeader
TypeAPI Key (header: X-API-Key)

Parameters

Path Parameters

artistId*
Typeinteger
Required
Example1
Format"int64"

Responses

Bad Request - Deprecated Endpoint

application/json
JSON
{
"type": "https://example.com/errors/generic-error",
"title": "Something went wrong here.",
"status": 403,
"detail": "Unfortunately, we can’t provide further information."
}

Playground

Authorization
Variables
Key
Value

Samples


Get all albums

GET
/api/v1/artists/{artistId}/albums

Get a list of all albums from a legendary Argentine Rock artist. You can add a new album using the POSTAdd a new album endpoint.

Parameters

Path Parameters

artistId*
Typeinteger
Required
Example1
Format"int64"

Query Parameters

limit

The number of items to return

Typeinteger
Examples
102050
Format"int64"
Default10
offset

The number of items to skip before starting to collect the result set

Typeinteger
Examples
123456
Format"int64"
Default0

Responses

Albums Found

The request was successful and returns a list of albums for the specified artist.

Response Format

The response includes:

  • A data array containing album objects
  • Pagination information for navigating through large collections

Note: If the artist has no albums, the data array will be empty but the request will still return a 200 status code.

application/json
JSON
{
"data": [
{
"id": 1,
"name": "La Máquina de Hacer Pájaros",
"year": 1976,
"image": "https://cdn.rock-legends.com/photos/la-maquina.jpg"
}
],
"meta": {
"limit": 10,
"offset": 0,
"total": 100,
"next": "/artists?limit=10&offset=10"
}
}

Playground

Variables
Key
Value

Samples


Add a new album

POST
/api/v1/artists/{artistId}/albums

Add a new album to a legendary Argentine Rock artist. Make sure it's a masterpiece! You can view all albums using the GETGet all albums endpoint.

Authorizations

bearerAuth
TypeHTTP (bearer)
or
apiKeyHeader
TypeAPI Key (header: X-API-Key)

Parameters

Path Parameters

artistId*
Typeinteger
Required
Example1
Format"int64"

Request Body

application/json
JSON
{
"id": 1,
"name": "La Máquina de Hacer Pájaros",
"year": 1976,
"image": "https://cdn.rock-legends.com/photos/la-maquina.jpg"
}

Responses

Album Created Successfully

The album has been successfully added to the artist's discography.

Response Details

The response includes the complete album object with:

  • A newly assigned unique id
  • All the information you provided in the request
  • The association with the artist
application/json
JSON
{
"id": 1,
"name": "La Máquina de Hacer Pájaros",
"year": 1976,
"image": "https://cdn.rock-legends.com/photos/la-maquina.jpg"
}

Playground

Authorization
Variables
Key
Value
Body

Samples


Powered by VitePress OpenAPI