i want to use the modeshape api which is supposed to give the list of repositories
i use the
maven web project. i include the modeshape-web-jcr-rest-war in the depedency. and i use the url in a httpget
Angular function.
var Modeshape = angular.module('Modeshape', []);
Modeshape.controller('Ltworksp',function($scope, $http) {
$http.get('http://localhost:8080/modeshape-rest/Persisted_Repository').success(function(data)
{$scope.lwspace = data;
});
});
i dont get the result so i pasted the url in the browser it shows error 404.
http://localhost:8080/modeshape-rest/Persisted_Repository
i have verified my database ; the nodes ares stored in database.
this is my config file :
{
"name" : "Persisted_Repository",
"workspaces" : {
"predefined" : ["otherWorkspace"],
"default" : "default",
"allowCreation" : true
},
"security" : {
"anonymous" : {
"roles" : ["readonly","readwrite","admin"],
"useOnFailedLogin" : false
}
},
"storage" : {
"cacheConfiguration" : "infinispan_configuration.xml",
"cacheName" : "Persisted_Repository",
"binaryStorage" : {
"type" : "file",
"directory": "target/content/binaries",
"minimumBinarySizeInBytes" : 4096
}
},
"query" : {
"enabled":true,
"rebuildUponStartup":"if_missing",
"indexStorage": {
"type":"filesystem",
"location":"target/content/index",
"lockingStrategy":"simple",
"fileSystemAccessType":"auto"
}
},
}
i miss something ???
cordialement