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?
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.
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.