When I return a generic the end point api file seems to disappear. Sample code is pasted.
@ApiMethod
public RestResponse<Container> testGeneric() {
Container container = new Container();
container.testLong = (long)4345;
container.testDate = new Date();
container.testString = "sathya";
container.testDouble = 123.98;
container.testInt = 123;
RestResponse<Container> response = new RestResponse<Container>();
response.t = container;
return response;
}
Is this a bug in endpoint and is such a thing not allowed at all ?
Regards, Sathya