rocketraman
07/10/2018, 4:19 PMpnih
07/11/2018, 1:37 PM@Location("/api/customer_book_list/{customerId}")
data class CustomerBookList(val customerId: String, val type: Int, val update_at: Long)
This curl doesn't resolve:
curl -v <http://localhost:8380/api/customer_book_list/{customerId}?type=0&update_at=987654345>
But if I have one parameter:
@Location("/api/customer_purchase_li{customerId}")
data class CustomerPurchaseLi(val customerId: String, val update_at: Long)
a request : <http://localhost:8380/api/customer_purchase_li{customerId}?update_at=09876543>
does resolve, is there any problem with more than one query parameter being passed to a Location?martmists
07/11/2018, 7:25 PMmartmists
07/11/2018, 8:29 PMdanielm
07/12/2018, 7:33 AMdave08
07/15/2018, 2:58 PMdata class UserRequest(val `customer[id]`: Int ...)
... 🙈GreyhairRedbear
07/16/2018, 7:40 PMvincent.brule
07/17/2018, 9:41 AMNikky
07/17/2018, 10:44 AMtianhao
07/17/2018, 12:29 PMdave08
07/17/2018, 1:33 PMclass KlaxonSerializer(block: Klaxon.() -> Unit = {}) : JsonSerializer {
private val backend: Klaxon = Klaxon().apply(block)
override fun write(data: Any): OutgoingContent = TextContent(backend.toJsonString(data), ContentType.Application.Json)
override suspend fun read(info: TypeInfo, response: HttpResponse): Any {
val text= response.readText()
return backend.parse(text) as info.type
}
}
but obviously info.type won't work there and the parse function takes a reified type...Vinicius Carvalho
07/17/2018, 8:38 PMError: Could not find or load main class io.ktor.server.netty.DevelopmentEngine
mp
07/17/2018, 10:04 PMVinicius Carvalho
07/18/2018, 1:06 AMkurus
07/18/2018, 3:08 AMDeactivated User
07/18/2018, 4:55 AMJordan Terrell
07/20/2018, 1:46 PMVinicius Carvalho
07/20/2018, 4:08 PMfred.deschenes
07/20/2018, 5:55 PMIvan Podhornyi
07/23/2018, 11:16 AMkotlin.UninitializedPropertyAccessException: lateinit property sqls has not been initialized
vincent.brule
07/24/2018, 8:35 AMvincent.brule
07/24/2018, 1:06 PMJordan Terrell
07/24/2018, 6:38 PMjoshr
07/26/2018, 9:23 PMrocketraman
07/27/2018, 12:34 AMcall.request.receiveChannel()
-- after ktor has been idle for a while, I am unable to consume the full length of the data.martmists
07/28/2018, 8:19 PMget("/api/<something: int>/<other: string>")
in ktor?martmists
07/29/2018, 2:07 PMmartmists
07/29/2018, 2:25 PMmartmists
07/29/2018, 3:31 PMvincent.brule
07/30/2018, 8:08 AM