All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.RequestMethod.kt Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
package com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable

import com.ancientlightstudios.quarkus.kotlin.openapi.utils.SpecIssue

enum class RequestMethod(val value: String) {
    Get("get"),
    Put("put"),
    Post("post"),
    Delete("delete"),
    Options("options"),
    Head("head"),
    Patch("patch"),
    Trace("trace");

    companion object {

        fun fromString(value: String) = values().firstOrNull { it.value == value.lowercase() }
            ?: SpecIssue("Unknown request method '$value'")

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy