Executes endpoint and decodes the response into T.
Executes endpoint sending body of type B, and decodes the response into T.