visual studio 2013 - Azure API App proxy generation error -


i able create test api , host in azure. when try create proxy client, receive following error.

[fatal]error generating service model: operation 'get' has body parameter, did not have supported mime type ('application/json') in consumes property.
exception: there error during code generation when trying add client microsoft azure api app
generating client code , adding project failed

i checked swagger file , contains node empty. when change to

"consumes": [ "application/json", "application/xml" ]

the proxy creation works. why did auto-generated swagger json not have contains property set? went default swaggerconfig when created api app. missing configuration? appreciated.

as found out comments, solution to remove httprequestmessage parameter of action. enable api app client generate code ok.

if need mock object, please follow documented way here or example here.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -