Post where request body is not a parameter?
Thorium opened this issue · comments
I'm trying to call https://institution-api-sim.clearbank.co.uk/docs/index.html?urls.primaryName=V1
/v1/Test
- A test endpoint which echoes the supplied content to ensure that signature verification and authorization is working as expected
Basically my code is something like this:
type ClearBankSwaggerV1 = SwaggerClientProvider<"https://institution-api-sim.clearbank.co.uk/docs/v1/api.json", PreferAsync=true>
let callTest() =
async {
let httpClient = new System.Net.Http.HttpClient(BaseAddress=new Uri("https://institution-api-sim.clearbank.co.uk/"))
let client = ClearBankSwaggerV1.Client httpClient
let! r = client.V1TestPost("authToken", "signature_bodyhash", "requestId") |> Async.Catch
return r
}
But why there is no request body as parameter to V1TestPost
?
No optional parameter, no overloaded method, ...?
Sorry, I think this is not SwaggerProvider issue, but rather their API specification is missing a parameter from the post-request
{
"name": "request",
"in": "body",
"description": "Any payload",
"required": false,
"schema": { "type": "object" }
}