post
Sends an HTTP POST request to the specified path
with the provided request
payload. The type of the request body and the expected response must be explicitly specified using requestBodyType
and responseType
, respectively.
Return
The response payload, deserialized into the specified type.
Parameters
The endpoint path to which the HTTP POST request is sent.
The request payload to be sent in the POST request.
The Kotlin class reference representing the type of the request body.
The Kotlin class reference representing the expected type of the response.
Throws
if the request fails or the response cannot be deserialized.
Sends an HTTP POST request to the specified path
with the provided request
payload.
Return
The response payload from the server, represented as a string.
Parameters
The endpoint path to which the HTTP POST request is sent.
The request payload to be sent in the POST request. It must be a string.