Now we always generate both FooApi.operation and FooApi.operation$Response.
Instead, we can use function overloads to generate a single operation that can return either the body or the response.
For operations that declare multiple response content types, we could also add the expected content type as argument, and generate the correct result type.
Now we always generate both
FooApi.operation
andFooApi.operation$Response
. Instead, we can use function overloads to generate a single operation that can return either the body or the response. For operations that declare multiple response content types, we could also add the expected content type as argument, and generate the correct result type.