Andreas Pantelopoulos 4e6d8b2d94 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
2018-02-23 11:34:39 -08:00

17 lines
471 B
Python

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',
)