We are consuming web API in .net application so generated swagger C# 2.0 
client code but missing to pass Header details after c# client code 
generated. Without Authentication API responding correctly but when 
applying UID/PWD c# generated code it is returning authorization denied. 
Could you please share some code which authenticate/Authorize web API and 
generated tokenand call web api method?

We are testing Web API in different environment and we need to provide 
configuration in config file and read from there. If we can get .Net sample 
with swagger generated code would be greatly help.

 

In swagger not passing URL header or UID/PWD anything. Just importing 
JSON/YAML file in swagger online editor and generating c# client code. 
Do let me know in case further clarification required.

Regards,
Harprasad

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to