commit | bb0fc28fb0d220e250ee6b40498bbe084ae6742f | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Thu Jan 17 16:05:03 2019 +0100 |
committer | Andrea Campanella <andrea@opennetworking.org> | Thu Jan 17 18:12:39 2019 +0000 |
tree | 6b404199e1fd4e02202381a263f6a4044492c2da | |
parent | 8ae74a34f50812d031a8dafdf1d396fa72fc0350 [diff] |
Enabling REST API and swagger docs for apps with no resources folder Change-Id: Ic35d178785e87f496bdcb425269c970758b5c516 (cherry picked from commit 4005c060d5520182d6849a4b7df61d0561664c5f)
diff --git a/apps/packet-stats/web/src/main/java/org/onosproject/packetstats/rest/PacketStatsWebResource.java b/apps/packet-stats/web/src/main/java/org/onosproject/packetstats/rest/PacketStatsWebResource.java index a6bf190..3f62650 100644 --- a/apps/packet-stats/web/src/main/java/org/onosproject/packetstats/rest/PacketStatsWebResource.java +++ b/apps/packet-stats/web/src/main/java/org/onosproject/packetstats/rest/PacketStatsWebResource.java
@@ -30,6 +30,7 @@ /** * Packet Stats REST API. */ +@Path("") public class PacketStatsWebResource extends AbstractWebResource { private final ObjectMapper mapper = new ObjectMapper(); private static final String METRIC_NAME = null;
diff --git a/tools/build/bazel/osgi_java_library.bzl b/tools/build/bazel/osgi_java_library.bzl index e5065f7..571e3c3 100644 --- a/tools/build/bazel/osgi_java_library.bzl +++ b/tools/build/bazel/osgi_java_library.bzl
@@ -451,7 +451,7 @@ native_srcs = srcs native_resources = resources - if web_context != None and api_title != "" and len(resources) != 0: + if web_context != None and api_title != "": # generate Swagger files if needed _swagger_java( name = name + "_swagger_java",