How to fetch the selected endpoint data along with it described definitions
I was trying to fetch the endpoints but in order to fetch definitions along with endpoints I was unable to fetch those things.
Please help me on this scenario
Sample swagger file I attached
var res= { ////I have to put that swagger file } var paths=res.paths[/employee]; document.write(JSON.stringify(paths)); If i call this i am getting paths not getting definitions. What i need is like "paths":{ "/employee":{ ///Data present inside the path And inside the endpoint we mentioned some definitions need to fetch those things } } "definitions":{ "Operations:{ } }
Like above described i need in that way will yo please help me on this above case @Siddharth Barahalikar @Dino-at-Google @Dino @Girish Gajria