ResourcesFormat
class ResourcesFormat(serializersModule: SerializersModule) : SerialFormat
Content copied to clipboard
A format to (de)serialize resources instances
Constructors
Link copied to clipboard
fun ResourcesFormat(serializersModule: SerializersModule = EmptySerializersModule)
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun <T> decodeFromParameters(deserializer: KSerializer<T>, parameters: Parameters): T
Content copied to clipboard
Builds a T resource instance from parameters
Link copied to clipboard
fun <T> encodeToParameters(serializer: KSerializer<T>, value: T): Parameters
Content copied to clipboard
Builds Parameters for a resource T
Link copied to clipboard
Builds a path pattern for a given serializer
Link copied to clipboard
fun <T> encodeToQueryParameters(serializer: KSerializer<T>): Set<ResourcesFormat.Parameter>
Content copied to clipboard
Builds a description of query parameters for a given serializer