Hi <@UFT11FKSP>, thanks for your response! Yes tha...
# kvision
c
Hi @Robert Jaros, thanks for your response! Yes that's correct, the original code is
val promise = LegacyRestClient().remoteCall(url = url, deserializer = deserializer)
Actually, I'm also a bit confused over the various "methods" of RestClient. The "Using REST services" chapter of the KVision guide (https://kvision.gitbook.io/kvision-guide/3.-optional-ui-functionality-via-modules/using-rest-services) examplifies and talks about various methods (but not receive), but the actual API seems to be different. And the (8.1.0) API reference (https://rjaros.github.io/kvision/kvision/io.kvision.rest/-rest-client/index.html) is not too helpful, at least for me as a newbie, stating, for example that receive() has a return type of
<Error class: unknown class><RestResponse<T>>
. Either way, it now compiles using receive(). Did you have a convenient way to "map"
Promise<RestResponse<T>>
to
Promise<T>
in mind?