REST interface for VPLS application
Change-Id: I2cab5bd6ff0ce026d0ef844bba6199fdd7f3e50d
This repository contains the files that provide a REST interface for VPLS
application.I create a new package in org.onosproject.vpls
called rest that contains the java classes VplsWebApplication and
VplsWebResource. The VplsWebResource provides create/update/read/delete
(CURD) functionality, leveraging the methods defined in the Vpls java
interface. I create a new folder called resources that contains
the json definitions and the files for the "web page".
diff --git a/apps/vpls/BUILD b/apps/vpls/BUILD
index e2a2c69..20fac7a 100644
--- a/apps/vpls/BUILD
+++ b/apps/vpls/BUILD
@@ -4,12 +4,17 @@
]
osgi_jar_with_tests(
+ api_description = "REST API for Vpls ",
+ api_package = "org.onosproject.vpls.rest",
+ api_title = "VPLS REST",
+ api_version = "1.0",
exclude_tests = ["org.onosproject.vpls.VplsTest"],
karaf_command_packages = [
"org.onosproject.vpls.cli",
"org.onosproject.vpls.cli.completer",
],
test_deps = TEST_ADAPTERS,
+ web_context = "/onos/vpls",
deps = COMPILE_DEPS,
)