Closed helpermethod closed 11 years ago
If the path of a resource starts with a / the full path is constructed wrong:
/
Example:
base = 'http://sandbox.openapi.etsy.com/v2/private' path = '/consoles'
Results in 'http://sandbox.openapi.etsy.com/v2/private//consoles'
Example WADL: https://github.com/apigee/wadl-library/blob/master/etsy/etsy-wadl.xml
Is:
public String getFullPath() { parent.fullPath + "/${path}" }
Should be:
public String getFullPath() { parent.fullPath + (path.startsWith('/') ? path: "/$path") }
If the path of a resource starts with a
/
the full path is constructed wrong:Example:
base = 'http://sandbox.openapi.etsy.com/v2/private' path = '/consoles'
Results in 'http://sandbox.openapi.etsy.com/v2/private//consoles'
Example WADL: https://github.com/apigee/wadl-library/blob/master/etsy/etsy-wadl.xml
Is:
Should be: