15 lines
595 B
Kotlin
15 lines
595 B
Kotlin
package de.twomartens.timetable.bahnApi.property
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema
|
|
import org.springframework.boot.context.properties.ConfigurationProperties
|
|
import org.springframework.boot.context.properties.bind.ConstructorBinding
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope
|
|
|
|
@RefreshScope
|
|
@ConfigurationProperties(prefix = "de.twomartens.timetable.bahn-api")
|
|
@Schema(description = "Properties to configure the BahnAPI")
|
|
data class BahnApiProperties @ConstructorBinding constructor(
|
|
val clientId: String,
|
|
val clientSecret: String
|
|
)
|