private static ResponseConfig convert(ApiOperation apiOperation) { ResponseConfig responseConfig = new ResponseConfig(); responseConfig.setCode(apiOperation.code()); responseConfig.setResponseClass(apiOperation.response()); responseConfig.setResponseContainer(apiOperation.responseContainer()); responseConfig.setResponseReference(apiOperation.responseReference()); responseConfig.setResponseHeaders(apiOperation.responseHeaders()); return responseConfig; }
private static ResponseConfig convert(ApiOperation apiOperation) { ResponseConfig responseConfig = new ResponseConfig(); responseConfig.setCode(apiOperation.code()); responseConfig.setResponseClass(apiOperation.response()); responseConfig.setResponseContainer(apiOperation.responseContainer()); responseConfig.setResponseReference(apiOperation.responseReference()); responseConfig.setResponseHeaders(apiOperation.responseHeaders()); return responseConfig; }
if (apiOperation != null && StringUtils.isNotBlank(apiOperation.responseReference())) { final Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); result.put(apiOperation.code(), response);
if (apiOperation != null && StringUtils.isNotEmpty(apiOperation.responseReference())) { Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); operation.addResponse(String.valueOf(apiOperation.code()), response); } else if (responseType == null) {
if (apiOperation != null && StringUtils.isNotEmpty(apiOperation.responseReference())) { Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); operation.addResponse(String.valueOf(apiOperation.code()), response); } else if (responseType == null) {
if (apiOperation != null && StringUtils.isNotBlank(apiOperation.responseReference())) { final Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); result.put(apiOperation.code(), response);
if (apiOperation != null && StringUtils.isNotEmpty(apiOperation.responseReference())) { Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); operation.addResponse(String.valueOf(apiOperation.code()), response); } else if (responseType == null) {
if (apiOperation != null && StringUtils.isNotEmpty(apiOperation.responseReference())) { Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); operation.addResponse(String.valueOf(apiOperation.code()), response); } else if (responseType == null) {
if (apiOperation != null && StringUtils.isNotEmpty(apiOperation.responseReference())) { Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); operation.addResponse(String.valueOf(apiOperation.code()), response); } else if (responseType == null) {