Use Swagger-UI and Herd-SDK that contain only R/O endpoints
Fix style checker errors
/*
- * Copyright 2019 herd contributors
+ * Copyright 2015 herd contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,11 +28,19 @@ import java.util.Map;
* <p>
* If allowedOperations list provided - only operations within this list will appear in final yaml spec
**/
-public class OperationsFilter extends AbstractSpecFilter {
+public class OperationsFilter extends AbstractSpecFilter
+{
private List<String> allowedOperations;
- public OperationsFilter(String[] allowedOperations) {
- if (allowedOperations != null) {
+ /**
+ * Constructs the model class finder.
+ *
+ * @param allowedOperations the list of operations to be included in the resulting yaml spec.
+ */
+ public OperationsFilter(String[] allowedOperations)
+ {
+ if (allowedOperations != null)
+ {
this.allowedOperations = Arrays.asList(allowedOperations);
}
}
@@ -43,7 +51,8 @@ public class OperationsFilter extends AbstractSpecFilter {
ApiDescription api,
Map<String, List<String>> params,
Map<String, String> cookies,
- Map<String, List<String>> headers) {
+ Map<String, List<String>> headers)
+ {
return allowedOperations == null ||
allowedOperations.size() == 0 ||
allowedOperations.stream().anyMatch(op -> operation.getOperationId().equalsIgnoreCase(op))
