Vorbereitung Release 0.2.0

This commit is contained in:
2026-01-29 23:50:41 +01:00
parent 58f80b3e76
commit b26b5ecc9c
571 changed files with 35728 additions and 5022 deletions
@@ -0,0 +1,14 @@
package de.thpeetz
import jakarta.ws.rs.GET
import jakarta.ws.rs.Path
import jakarta.ws.rs.Produces
import jakarta.ws.rs.core.MediaType
@Path("/hello")
class GreetingResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
fun hello() = "Hello from Quarkus REST"
}
@@ -0,0 +1,14 @@
package de.thpeetz.kontor
import jakarta.ws.rs.core.Application
import org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition
import org.eclipse.microprofile.openapi.annotations.info.Info
import org.eclipse.microprofile.openapi.annotations.tags.Tag
@OpenAPIDefinition(
info = Info(
title = "Kontor",
version = "0.2.0"
)
)
class KontorApplication: Application()
@@ -0,0 +1,25 @@
package de.thpeetz.kontor.comics.domain
import io.quarkus.hibernate.orm.panache.kotlin.PanacheEntityBase
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
import org.eclipse.microprofile.openapi.annotations.media.Schema
import java.time.LocalDate
import java.time.LocalDateTime
import kotlin.properties.Delegates
@Entity
@Table(name = "comic")
class Comic: PanacheEntityBase {
@Id
lateinit var id: String
lateinit var createdDate: LocalDateTime
lateinit var lastModifiedDate: LocalDateTime
lateinit var version: Integer
lateinit var title: String
lateinit var webLink: String
var completed: Boolean = false
var currentOrder: Boolean = false
lateinit var publisherId: String
}
@@ -0,0 +1,22 @@
package de.thpeetz.kontor.comics.resource
import de.thpeetz.kontor.comics.domain.Comic
import jakarta.ws.rs.GET
import jakarta.ws.rs.Path
import jakarta.ws.rs.PathParam
import jakarta.ws.rs.Produces
import jakarta.ws.rs.core.MediaType
import org.eclipse.microprofile.openapi.annotations.tags.Tag
@Path("/api/comics/comics")
@Produces(MediaType.APPLICATION_JSON)
@Tag(name = "comics", description = "Comics")
class ComicsResource {
@GET
fun findAll(): List<Comic> = emptyList<Comic>()
@GET
@Path("/{id}")
fun findById(@PathParam("id") id: String): Comic? = null
}