waifuim
    Preparing search index...

    Class ArtistsService

    Index

    Constructors

    Methods

    • Create a new artist.

      Register a new artist in the database. Include their social media links if available. The artist will be created with "Pending" review status and must be approved by a moderator.

      Parameters

      Returns Promise<Artist>

      AuthenticationRequired if authentication is missing.

      ApiError with status 400 if invalid artist data.

      ApiError with status 401 if authentication is invalid.

      ApiError with status 403 if insufficient permissions (role restriction configured by API administrator).

      ApiError with status 409 if an artist with this name already exists.

    • Delete an artist permanently. Permanently removes an artist. Images associated with this artist will no longer have this artist linked. Requires: Admin role.

      Parameters

      • id: number

        The artist ID to delete.

      Returns Promise<void>

      AuthenticationRequired if authentication is missing.

      ApiError with status 401 if authentication is invalid.

      ApiError with status 403 if insufficient permissions.

      ApiError with status 404 if artist not found.

    • Get an artist by name. Search for an artist by their exact name. Case-insensitive.

      Parameters

      • name: string

        The name of the artist.

      Returns Promise<Artist>

      ApiError with status 404 if artist not found.