Function post_request

Source
pub async fn post_request<T: DeserializeOwned, B: Serialize>(
    client: &Client,
    url: &str,
    body: &B,
) -> Result<T, CommonError>
Expand description

Make a POST request with JSON body