It would be great if the following worked and the proper method was called based on what `Accept` header the caller supplied. ``` @Path('') class Controller { @GET @Path('/getFruit') @Produces('application/json') async getFruitAsJson(): Promise<Response> { const repsonse = new Repsonse(); response.body = { fruit: "apple" }; return response; } @GET @Path('/getFruit') @Produces('text/plain') async getFruitAsString(): Promise<Response> { const repsonse = new Repsonse(); response.body = "apple"; return response; } ``` If this is currently supported and just undocumented, then consider this ticket a request for documentation.
It would be great if the following worked and the proper method was called based on what
Acceptheader the caller supplied.If this is currently supported and just undocumented, then consider this ticket a request for documentation.