blob: 887f1da4e53d3d52f51994aa99006131fad89564 [file] [log] [blame]
Komal Shah399a2922014-05-28 01:57:40 -07001
2package net.onrc.onos.apps.sdnip.web;
3
4import net.floodlightcontroller.restserver.RestletRoutable;
5
6import org.restlet.Context;
7import org.restlet.Restlet;
8import org.restlet.routing.Router;
9
10/**
11 * REST URL router for SDN-IP REST calls.
12 */
13public class SdnIpWebRoutableNew implements RestletRoutable {
14
15 @Override
16 public Restlet getRestlet(Context context) {
17 Router router = new Router(context);
pingping-linaea385b2014-09-04 18:15:19 -070018 //router.attach("/beginRouting/json", SdnIpSetup.class);
19 router.attach("/beginRouting/json/{version}", SdnIpSetup.class);
Komal Shah399a2922014-05-28 01:57:40 -070020 return router;
21 }
22
23 @Override
24 public String basePath() {
Jonathan Hartf6978ce2014-06-23 11:20:04 -070025 return "/wm/sdnip";
Komal Shah399a2922014-05-28 01:57:40 -070026 }
27}