cpu resource control via rest api + unittest including ELAN test
[osm/vim-emu.git] / src / emuvim / api / rest / rest_api_endpoint.py
index e382f5a..a065e16 100755 (executable)
@@ -61,7 +61,9 @@ class RestApiEndpoint(object):
 
         # setup endpoints
 
-        self.api.add_resource(Compute, "/restapi/compute/<dc_label>/<compute_name>")
+        self.api.add_resource(Compute,
+                              "/restapi/compute/<dc_label>/<compute_name>",
+                              "/restapi/compute/<dc_label>/<compute_name>/<resource>/<value>")
         self.api.add_resource(ComputeList,
                       "/restapi/compute",
                       "/restapi/compute/<dc_label>")