I am trying to add headers to our SS service using the APIMember attribute with the Type = "header" parameter.
Everything seems to work, except for the header, which is not added to the RequestContext. Hoping he supports the headers. If so, how is there a way to prevent this header property in the request or the Get path?
What am I doing wrong?
namespace Test
{
[Api(Description = "MyTest")]
[Route("/Test", Verbs="GET")]
public class MyRequest
{
[ApiMember(
Name = "SolutionName",
ParameterType = "query",
Description = "Test",
DataType = "string",
IsRequired = true)]
public string SolutionName { get; set; }
[ApiMember(
Name = "Token",
ParameterType = "header",
DataType = "string",
IsRequired = true)]
public string Token { get; set; }
}
}
Help rate!
Thanks Nack
source
share