respondsCreated

inline fun <T> respondsCreated(description: String = "Resource created")(source)

Declares a 201 Created response returning T wrapped in KeelResponse<T>.

Parameters

T

The data type returned in KeelResponse.data

description

Human-readable description of the created response