From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-rest-client/remote-call.html | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 api1/pl.treksoft.kvision.rest/-rest-client/remote-call.html (limited to 'api1/pl.treksoft.kvision.rest/-rest-client/remote-call.html') diff --git a/api1/pl.treksoft.kvision.rest/-rest-client/remote-call.html b/api1/pl.treksoft.kvision.rest/-rest-client/remote-call.html new file mode 100644 index 00000000..b1025d7b --- /dev/null +++ b/api1/pl.treksoft.kvision.rest/-rest-client/remote-call.html @@ -0,0 +1,88 @@ + + + +RestClient.remoteCall - kvision + + + +kvision / pl.treksoft.kvision.rest / RestClient / remoteCall
+
+

remoteCall

+ +fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = null): Promise<dynamic> +

Makes a remote call to the remote server.

+

Parameters

+

+url - an URL address

+

+data - data to be sent

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

Return
+a promise of the result

+ +fun <T : Any> remoteCall(url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = null, transform: ((dynamic) -> dynamic)? = null): Promise<T> +

Makes a remote call to the remote server.

+

Parameters

+

+url - an URL address

+

+data - data to be sent

+

+deserializer - a deserializer for the result value

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

+

Return
+a promise of the result

+ +fun <V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = null): Promise<dynamic> +

Makes a remote call to the remote server.

+

Parameters

+

+url - an URL address

+

+serializer - for the data

+

+data - data to be sent

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

Return
+a promise of the result

+ +fun <T : Any, V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = null, transform: ((dynamic) -> dynamic)? = null): Promise<T> +

Makes a remote call to the remote server.

+

Parameters

+

+url - an URL address

+

+serializer - for the data

+

+data - data to be sent

+

+deserializer - a deserializer for the result value

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

+

Return
+a promise of the result

+ + -- cgit