Canvas API and Swagger

Jump to solution
d_tan
Community Participant

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

Labels (1)
1 Solution
stuart_ryan
Community Novice

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

View solution in original post