Package-level declarations

Types

Link copied to clipboard

Generates Spring Web MVC controller interfaces from Tapik endpoint metadata.

Functions

Link copied to clipboard
fun Status.toHttpStatus(): HttpStatus

Converts Tapik Status definitions into Spring HttpStatus instances.

Link copied to clipboard
fun <P : Parameters, I : Input<*, *>, O : Outputs> HttpEndpoint<P, I, O>.toResponseEntity(choice: OneOf): ResponseEntity<Any?>

Converts a Tapik OneOf response produced by an endpoint with multiple outputs into a Spring ResponseEntity.

fun <P : Parameters, I : Input<*, *>, O : Outputs> HttpEndpoint<P, I, O>.toResponseEntity(response: Response<*>): ResponseEntity<Any?>

Converts a Tapik Response produced by an endpoint with a single output into a Spring ResponseEntity.

fun <P : Parameters, I : Input<*, *>, O : Outputs> HttpEndpoint<P, I, O>.toResponseEntity(result: Any): ResponseEntity<Any?>

Converts an arbitrary Tapik response representation into a Spring ResponseEntity.

Link copied to clipboard
fun MediaType.toSpringMediaType(): MediaType

Converts Tapik MediaType definitions into Spring MediaType instances.