Open borisr84 opened 3 years ago
I have the same issue with 201 Created
returning the URI of the created resource in the Location
header - I want to be able to parse that and return the ID of the new resource. NSwag needs the option to wrap responses in an envelope e.g. ApiResponse<T>
, which exposes the received headers, as well as the deserialised body.
Hi, I am trying to generate a C# client which gets a response with custom headers.
I'm using an example from the OpenAPI specification as follows:
But the generated client ignores the headers section.
Is this a known issue? Am I missing something? Is there a workaround for that?
Thank you, Boris.