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
}