APITag

interface APITag(source)

This interface is used to define tags to classify endpoints. It needs to be implemented using an enum so that the processor properly detects equality.

This is assigned to a service using com.papsign.ktor.openapigen.route.tag.

Implementation example:

enum class Tags(override val description: String) : APITag {
    EXAMPLE("Wow this is a tag?!")
}

See also

Properties

Link copied to clipboard
abstract val description: String
Link copied to clipboard
Link copied to clipboard
abstract val name: String

Functions

Link copied to clipboard
open fun toTag(): TagModel