simpleJsonPost

open fun <T> simpleJsonPost(url: String, body: String, schema: Type): T
open fun <T> simpleJsonPost(url: String, body: String, schema: Class<T>): T

Send a simple POST request and parse the JSON response

Return

Response deserialized into the provided Class

Parameters

url

The url to fetch

body

The request body

schema

Class to deserialize the response into


open fun <T> simpleJsonPost(url: String, body: Any, schema: Type): T
open fun <T> simpleJsonPost(url: String, body: Any, schema: Class<T>): T

Send a simple POST request with JSON body

Return

Response deserialized into the provided Class

Parameters

url

The url to fetch

body

The request body

schema

Class to deserialize the response into