add service to xoslib
diff --git a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
index 5f56806..f5431e7 100644
--- a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
+++ b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
@@ -9,6 +9,7 @@
DEPLOYMENT_API = "/plstackapi/deployments";
IMAGE_API = "/plstackapi/images";
NETWORK_API = "/plstackapi/networks";
+ SERVICE_API = "/plstackapi/services";
SLICEPLUS_API = "/xoslib/slicesplus/";
@@ -204,6 +205,11 @@
model: this.network});
this.networks = new this.networkCollection();
+ this.service = XOSModel.extend({ urlRoot: SERVICE_API });
+ this.serviceCollection = XOSCollection.extend({ urlRoot: SERVICE_API,
+ model: this.service});
+ this.services = new this.serviceCollection();
+
// enhanced REST
this.slicePlus = XOSModel.extend({ urlRoot: SLICEPLUS_API });
this.slicePlusCollection = XOSCollection.extend({ urlRoot: SLICEPLUS_API,