apigee-127 / swagger-node-runner

The heart of Swagger-Node
MIT License
102 stars 123 forks source link

How can I get the available routes? #113

Open BrunoQuaresma opened 6 years ago

BrunoQuaresma commented 6 years ago

I want to return a resource JSON representation with a link to itself. But I don't want to do that writing the path in a hard-coded way. Is there some way to get req.swagger.urls.hello or something like named routes?

Thanks.

theganyo commented 6 years ago

Sorry, I don't understand what you're after exactly, but you do have programmatic access to anything that Sway provides: https://github.com/apigee-127/sway.