package com.keylightpiano.pianotimeline.data.remote

import retrofit2.http.GET

/**
 * Retrofit turns this interface into a working HTTP client at runtime.
 * Each function = one endpoint. The return type tells Retrofit what to
 * deserialize the response into (our DTO, via the kotlinx-serialization converter).
 *
 * `suspend` means this is a coroutine function: it can run the network call
 * off the main thread and "suspend" until the response arrives, without
 * blocking anything. Retrofit has built-in suspend support.
 */
interface MusicApi {

    @GET("list.json")
    suspend fun getRecordingList(): RecordingListDto
}
