thatadamedwards
06/08/2018, 9:36 PMval (_, _, result) = myUrlString.httpPost()
.header("Content-Type" to "application/json", "Authorization" to "Bearer $authToken")
.body(jacksonObjectMapper().writeValueAsString(message))
.responseString()
if (result is Result.Failure) {
val errorMessage = result.error.response.responseMessage
throw BadRequestException(errorMessage)
} else {
return true
}
dave08
06/10/2018, 4:52 PMthatadamedwards
06/11/2018, 3:47 PM