Skip to content

Services

Peter Araujo edited this page Jul 28, 2024 · 1 revision

General

There is a service for every resource.

Convention

Services can be obtain using:

{Resource} + Service

For example, to get Artwork service:

val artworkService = ArtworkService()

Availability

All resources are available.

Service configuration

You can configure how a service process requests through its constructor.

For example, to change the JSon it uses to parse responses:

    val myCustomJson = Json {
        ignoreUnknownKeys = false
    }

    val artworkService = ArtworkService(
        json = myCustomJson
    )

Clone this wiki locally