Bazel build files for protocols
Change-Id: I12a9cfe2d135d10c640a51d9b3438bcd92f8e37f
diff --git a/web/api/BUILD b/web/api/BUILD
new file mode 100644
index 0000000..6c6595a
--- /dev/null
+++ b/web/api/BUILD
@@ -0,0 +1,22 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + METRICS + [
+ "@javax_ws_rs_api//jar",
+ "//incubator/api:onos-incubator-api",
+ "//utils/rest:onlab-rest",
+]
+
+TEST_DEPS = TEST_REST + [
+ "@minimal_json//jar",
+ "@jersey_security//jar",
+]
+
+osgi_jar_with_tests(
+ name = "onos-rest",
+ api_description = "ONOS Core REST API",
+ api_package = "org.onosproject.rest.impl",
+ api_title = "ONOS Core REST API",
+ api_version = "1.0",
+ exclude_tests = ["org.onosproject.rest.resources.ResourceTest"],
+ test_deps = TEST_DEPS,
+ web_context = "/onos/v1",
+ deps = COMPILE_DEPS,
+)