dev.bantu.accounts.api.TokenAPI.kt Maven / Gradle / Ivy
package dev.bantu.accounts.api
import dev.bantu.accounts.api.model.CreateTokenInput
import dev.bantu.accounts.api.model.CreateTokenOutput
import dev.bantu.accounts.api.support.BaseAPI
import io.soffa.foundation.context.RequestContext
import io.swagger.v3.oas.annotations.Operation
import javax.validation.Valid
import javax.ws.rs.Path
interface TokenAPI: BaseAPI {
@Operation(
method = "POST",
summary = "Create an authentication token with your api_key and api_secret"
)
@Path("/token")
fun authenticate(@Valid input: CreateTokenInput, context: RequestContext): CreateTokenOutput
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy