Refactored sr app to enable rest api.
The segment routing application structure has been refactored
to the following structure :
sr
---- app
---- web
web folder contains the rest cli implementations while app folder
contains everything else. Originally I tried to split the application
in api / app / web, where api would contain all the interfaces. However,
that was not possible due to the fact that most of the classes do not implement
any interfaces and app -- api would result in circular dependencies and we would
not be able to build them.
Change-Id: Ifaaeefe2c5061c8457924ccd01678fb18966c44f
diff --git a/apps/segmentrouting/web/BUCK b/apps/segmentrouting/web/BUCK
new file mode 100644
index 0000000..bf6864c
--- /dev/null
+++ b/apps/segmentrouting/web/BUCK
@@ -0,0 +1,16 @@
+COMPILE_DEPS = [
+ '//lib:CORE_DEPS',
+ '//lib:JACKSON',
+ '//lib:javax.ws.rs-api',
+ '//utils/rest:onlab-rest',
+ '//apps/segmentrouting/app:onos-apps-segmentrouting-app',
+]
+
+osgi_jar_with_tests (
+ deps = COMPILE_DEPS,
+ web_context = '/onos/segmentrouting',
+ api_title = 'Segment Routing Rest Server',
+ api_version = '1.0',
+ api_description = 'REST API for Segment Routing Application',
+ api_package = 'org.onosproject.segmentrouting.web',
+)