Canvas API and Swagger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like Canvas is using Swagger as the API definition format. and judging by the Live API (https://<canvashost>/doc/api/api-docs.json ) it is using Swagger version 1.2
My question is does anyone know how to generate a (C#) client library based on the API definition from Swagger.
There are some options out there on the Internet like NSwag, but they all work against Swagger 2.0.
I have also tried to convert 1.2 to 2.0 using converter like https://lucybot.github.io/api-spec-converter/ , but that doesnt seem to work either.
thanks
Doug
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @d_tan ,
Great question, this is something I have often wondered myself. @tnijssen , that is handy to know!
Perhaps if this is something that more people would like to see in a future version of the API, logging a feature idea for this would be outstanding. I would suggest leaving the discussion open for a while first, and then collecting all the thoughts into a feature idea, what it would deliver, and how it would benefit all who interact with the API.
Cheers,
Stuart