29 lines
588 B
Python
29 lines
588 B
Python
"""Artist endpoints."""
|
|
|
|
import uuid
|
|
from typing import Any
|
|
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter(prefix="/artists", tags=["artists"])
|
|
|
|
|
|
@router.get("")
|
|
async def list_artists() -> Any: ...
|
|
|
|
|
|
@router.get("/{artist_id}")
|
|
async def get_artist(artist_id: uuid.UUID) -> Any: ...
|
|
|
|
|
|
@router.get("/{artist_id}/albums")
|
|
async def get_artist_albums(artist_id: uuid.UUID) -> Any: ...
|
|
|
|
|
|
@router.get("/{artist_id}/tracks")
|
|
async def get_artist_tracks(artist_id: uuid.UUID) -> Any: ...
|
|
|
|
|
|
@router.get("/{artist_id}/similar")
|
|
async def get_similar_artists(artist_id: uuid.UUID) -> Any: ...
|