Aaron Young
03/23/2018, 7:09 PMtipsy
03/23/2018, 7:15 PMAaron Young
03/23/2018, 7:16 PMjw
03/23/2018, 7:16 PMtipsy
03/23/2018, 7:22 PMjw
03/23/2018, 7:23 PMtipsy
03/23/2018, 7:23 PMjw
03/23/2018, 7:24 PMtipsy
04/11/2018, 2:34 PMtipsy
04/11/2018, 2:35 PMmp
04/13/2018, 8:48 AMcodefinger
04/13/2018, 12:58 PMtipsy
04/15/2018, 2:08 PMdave
04/15/2018, 2:21 PMhttp4k-contract
does this at runtime using a combination of the lens mechanism and a DSL-y type API to add route metadata. If you supply example request/responses, then http4k will also break down the models and generate JSON-schema definitions into the swagger JSON.tipsy
04/15/2018, 2:24 PMtipsy
04/15/2018, 2:25 PMhttp4k-contract
👀Filip Husnjak
04/17/2018, 8:01 AM`
class ApiController<T> where T: ApiModel, T: Table {
fun <T> index(ctx: Context) where T: ApiModel, T: Table {
T.serialize() <-- Not working, not found
transaction {
ctx.result()
}
`
this is what i have tried but i cannot get the ApiModel functions from my generic type Tmarstran
04/17/2018, 8:03 AMT
. You can't call serialize
directly on the type.Filip Husnjak
04/17/2018, 8:04 AMnfrankel
04/17/2018, 8:04 AMFilip Husnjak
04/17/2018, 8:06 AMnfrankel
04/17/2018, 8:07 AMFilip Husnjak
04/17/2018, 8:08 AMnfrankel
04/17/2018, 8:11 AMctx
and it’s of type Context
Filip Husnjak
04/17/2018, 8:24 AMnfrankel
04/17/2018, 8:33 AMnfrankel
04/17/2018, 8:33 AMRichyHBM
04/17/2018, 1:02 PMRichyHBM
04/17/2018, 1:02 PMdave
04/17/2018, 2:25 PM