ApiResponses

Module that wraps the REST-API template responses.

Types

Link copied to clipboard
@Serializable
data class ResponseEntry<out T>(val entry: T, val url: String?)

Class that represents an entry returned as response by an API. It could include also the entry's url.

Link copied to clipboard
@Serializable
data class ResponseEntryList<out T>(val entries: List<T>, val total: Int)

Class that represents a list of entries returned as response to an API request. As the REST API best-practise recommend it is included also the total number of the entries.

Link copied to clipboard
@Serializable
data class ResponseTimedEntry<out T>(val entry: T, val date: String)

Class that represents an entry returned as response by an API. Each entry is associated with its date.