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; }
responseCode = apiOperation.code();
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; }
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 (property != null) { final Property responseProperty = ContainerWrapper.wrapContainer(responseContainer, property); final int responseCode = (apiOperation == null) ? 200 : apiOperation.code(); operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty) .headers(defaultResponseHeaders));
final Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); result.put(apiOperation.code(), response); if (property != null) { final Property responseProperty = ContainerWrapper.wrapContainer(getResponseContainer(apiOperation), property); final int responseCode = apiOperation == null ? 200 : apiOperation.code(); final Map<String, Property> defaultResponseHeaders = apiOperation == null ? Collections.<String, Property>emptyMap() :
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 (property != null) { final Property responseProperty = ContainerWrapper.wrapContainer(responseContainer, property); final int responseCode = apiOperation == null ? 200 : apiOperation.code(); operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty)
final Response response = new Response().description(SUCCESSFUL_OPERATION); response.schema(new RefProperty(apiOperation.responseReference())); result.put(apiOperation.code(), response); final Property responseProperty = ContainerWrapper .wrapContainer(getResponseContainer(apiOperation), property); final int responseCode = apiOperation == null ? 200 : apiOperation.code(); final Map<String, Property> defaultResponseHeaders = apiOperation == null ? Collections.<String, Property> emptyMap()
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 (property != null) { final Property responseProperty = ContainerWrapper.wrapContainer(responseContainer, property); final int responseCode = apiOperation == null ? 200 : apiOperation.code(); operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty)
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 (property != null) { final Property responseProperty = ContainerWrapper.wrapContainer(responseContainer, property); final int responseCode = (apiOperation == null) ? 200 : apiOperation.code(); operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty) .headers(defaultResponseHeaders));
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 (property != null) { final Property responseProperty = ContainerWrapper.wrapContainer(responseContainer, property); final int responseCode = (apiOperation == null) ? 200 : apiOperation.code(); operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION) .schema(responseProperty).headers(defaultResponseHeaders));