cloudendpoints / endpoints-java

A Java framework for building RESTful APIs on Google App Engine
Apache License 2.0
32 stars 35 forks source link

Api method paths starting with a slash generating wrong path in discovery file #50

Closed clementdenis closed 7 years ago

clementdenis commented 7 years ago

Since beta.10, api method paths starting with a slash are not written correctly to the discovery file. This makes clients relying on the discovery (API explorer, gapi) return 404s for these methods. This was a supported feature in legacy Cloud Endpoints.

Here is an example:

tangiel commented 7 years ago

What is the purpose of re-specifying the /specialFeatures/v1 again? Isn't the intended purpose to specify methods outside of the API-version prefix?

clementdenis commented 7 years ago

This was probably the worst possible example :-) Our APIs have some overridden prefix path, sometimes not including the API version, like this: @ApiMethod(path = "/pathoverride/hello")

This used to work perfectly with the legacy endpoints. With latest v2 builds, these methods are bound to the right path, but the discovery file is wrong.

tangiel commented 7 years ago

This is now fixed.