spring-web-modules-kubernet.../api/src/main/kotlin/com/cubetiqs/web/model/response/ApiInfoResponse.kt

23 lines
719 B
Kotlin
Raw Normal View History

2021-12-20 17:26:07 +07:00
package com.cubetiqs.web.model.response
2021-12-21 11:55:35 +07:00
import com.fasterxml.jackson.annotation.JsonInclude
2021-12-20 17:26:07 +07:00
import io.swagger.v3.oas.annotations.media.Schema
2021-12-21 11:55:35 +07:00
@JsonInclude(JsonInclude.Include.NON_NULL)
2021-12-20 17:26:07 +07:00
@Schema(name = "ApiInfoResponse", description = "ApiInfoResponse")
data class ApiInfoResponse(
val name: String,
val info: String,
val service: String,
val version: String,
val date: String,
val commit: String,
2021-12-21 11:55:35 +07:00
val hostname: String? = null,
2021-12-20 17:26:07 +07:00
val authors: Collection<ApiInfoAuthorResponse> = listOf(),
) : BaseRequestModel
@Schema(name = "ApiInfoAuthorResponse", description = "ApiInfoAuthorResponse")
data class ApiInfoAuthorResponse(
val name: String,
val email: String,
) : BaseRequestModel