forked from loafle/openapi-generator-original
[Play Framework] Update Play Framework Generator to latest version (#7860)
* First iteration to support new mechanism that needs to have the handle of the result. * Most of the samples now build except "async". Also, everything is messed up.. need to understand the mustache way to handle this. * New version to support play 2.8 * Fix conflict * Fix error when multiple file in forms
This commit is contained in:
committed by
GitHub
parent
ebf2f2e30f
commit
998e0fdaa2
@@ -13,10 +13,10 @@ public class ApiCall extends Action<OpenAPIUtils.ApiAction> {
|
||||
@Inject
|
||||
private ApiCall() {}
|
||||
|
||||
public CompletionStage<Result> call(Http.Context ctx) {
|
||||
public CompletionStage<Result> call(Http.Request request) {
|
||||
try {
|
||||
//TODO: Do stuff you want to handle with each API call (metrics, logging, etc..)
|
||||
return delegate.call(ctx);
|
||||
return delegate.call(request);
|
||||
} catch (Throwable t) {
|
||||
//TODO: log the error in your metric
|
||||
|
||||
|
||||
Reference in New Issue
Block a user