So I decided to use this method since it's the simplest to add custom headers for my api calls, example:
[HttpPost]
[Route("something")]
public async Task<somethingObject> DoSomething([Microsoft.AspNetCore.Mvc.FromHeader(Name = "deviceGuid")] string deviceGuid)
{
var somethingObject= await doSomethingWithDevice(deviceGuid)
return somethingObject;
}
The expected outcome from this is a field in Swagger where I can input the deviceGuid and Swagger should consider it as a header.
Issue at hand is that Swagger is considering it a query and not a header:
Any clue how I can solve this?
