Details
-
Bug
-
Resolution: Done
-
Blocker
-
None
-
2.3.4.Final
-
None
Description
We having two interfaces.
public interface IRestVersionInfo {
@GET
@Path("/
Integer getCurrentVersion(@PathParam("id") String id);
}
@Path("/store/units")
public interface IRestStore extends IRestVersionInfo {
@GET
@GZIP
@Path("/{id}
")
@Produces(MediaType.APPLICATION_JSON)
public UnitConfiguration readUnit(@PathParam("id") String id,
@QueryParam("version") Integer version) throws Exception;
}
calling "/store/units/12345/currentversion" from an rest client works
just fine.
Looking in the generated JSAPI file coming from the server, it's like that:
Instead of generating getCurrentVersion on IRestStore, it's generating
it to IRestVersionInfo.
We have several Interfaces inherting from IRestVersionInfo.
All generated Snipplets are IRestVersionInfo.getCurrentVersion, instead
of the inherited class itself.
Correct would be IRestStore.getCurrentVersion