The migration docs for 2.x say that I can receive an arbitrary object with (something like)
Copy code
val customer: Customer = client.get("<http://localhost:8080/customer/3>").body()
and I'm assuming this works for post too, but whatever I do I can't find a way to do this in commonMain of a KMM app. Does this need to be platform specific? I've got the content negotiation plugin loaded into the HttpClient, and imported into the class making the call, it just complains that "body" is an unresolved reference.
Can someone point me in the right direction, please.
In the commonMain sourceset of the shared module.
In fact I had it as "implementation" rather than api, but, having changed it, I've got the same error 😕