Swagger Parser code

14 views
Skip to first unread message

vijay kumar

unread,
Mar 20, 2017, 3:02:02 AM3/20/17
to Swagger
Hi,

I am very new to swagger and i am trying to read the swagger definitions from swagger parser (https://github.com/swagger-api/swagger-parser) .I am able to read my swagger using 

 Swagger swagger = new SwaggerParser()
                .read("http://petstore.swagger.io/v2/swagger.json");

Actually, i am not sure what to after this.All i want is to read each $ref and generate the respective API in my code.Please let me know  how to do .code snippet will be really helpful.
I am depending on the reply from this group.

Thanks.
Reply all
Reply to author
Forward
0 new messages