Package-level declarations

Types

Link copied to clipboard
interface StoryblokClient

Client for the Storyblok Content Delivery API.

Link copied to clipboard
open class StoryblokClientException(message: String?, cause: Throwable?) : Exception

Exception thrown on errors occurring during StoryblokClient operations.

Link copied to clipboard
class StoryblokClientImpl(apiBuilder: Api.Config.Content.() -> Unit, serializersModuleBuilder: SerializersModuleBuilder.() -> Unit, jsonBuilder: JsonBuilder.() -> Unit, val json: Json = Json { isLenient = true decodeEnumsCaseInsensitive = true classDiscriminator = "component" serializersModule = SerializersModule { polymorphic(Component::class) { defaultDeserializer { serializer<Component.Unknown>() } } serializersModuleBuilder() } jsonBuilder() }, val http: HttpClient = HttpClient { install(ContentNegotiation) { json(json) } install(Storyblok(Api.CDN), apiBuilder) }) : StoryblokClient

Functions

Link copied to clipboard
inline fun <T : Component> StoryblokClient.story(slug: String): Flow<Story<T>>

Retrieves a Story by its slug using reified type information for the Component type.

inline fun <T : Component> StoryblokClient.story(uuid: Uuid): Flow<Story<T>>

Retrieves a Story by its UUID using reified type information for the Component type.