I read the other thread regarding the Swagger doc, but it’s been over a year since then – and looks like the errors are still there.
Will this ever be fixed?
I’d like to generate a C# client using https://editor.swagger.io/ but all I get are a lot of errors.
Could you please provide more details regarding the errors messages you are getting? if want to attach screenshots or sample files you can send an e-mail to [api at nutritionix dot com].
Swagger validator output:
And here are the errors from swagger editor
I realize the above are not pretty to look at so you could also just open https://editor.swagger.io/ and import from url https://trackapi.nutritionix.com/docs/trackDocs.yaml
If you need any more information, I’d be more than glad to provide it.
(Hey, we have the same name! :) )
Hey, glad to know we have the same name :)
We’ll review Swagger Doc code for future releases in order to identify and fix any existing warnings which blocks the Client Generator tool, meanwhile you can generate C# code snippets of the endpoints as needed by using Postman: https://www.getpostman.com/docs/postman/sending_api_requests/generate_code_snippets
I hope this information helps. Please contact us again if you have any further questions.