In the past I've used Restsharp to consume restul API. RestSharp helps us get concrete type object for given operation. The problem with RestSharp is we need to manually create the POCO classes.
Wondering if we can consume the REST API similar to WCF proxy which generates all operations with signatures and also generates necessary POCO classes.
I tried using Azure API Client and having no luck i.e. not getting strongly typed objects from operation call.
When I directly query the swagger UI I get below:
......,"definitions":{"Object":{"type":"object","properties":{}}}}
I'm quiet new to this Swagger.
Looking at JSON above, should the type and properties be of given type e.g. membership and it's properties?
Am I doing the right tool i.e. azure api client?
Thanks.
For Swagger proxy generation, I use Autorest. It's made by Microsoft and published as an OSS.
It's used internally to generate barebone SDK modules from Swagger endpoints in different languages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With