help n
antonid May 22, 2014 4:42 PMhello,
i try to use web service modeshape API
URL: http://<host>:<port>/<context>/<repository_name>/<workspace_name>/items/<node_path>
http://localhost:8080/<context>/Persisted-Repository/<workspace_name>/items/<node_path>
what is <context> ; <workspace_name> ;items ; <node_path>
should i change the json file
Request Format:
{
"jcr:primaryType":"nt:unstructured",
"testProperty":"testValue",
"multiValuedProperty":["value1", "value2"],
"children":{
"childNode":{
"nestedProperty":"nestedValue"
}
}
}
Response Format:
{
"self":"http://localhost:8090/resources/repo/default/items/testNode",
"up":"http://localhost:8090/resources/repo/default/items/",
"id":"bf171df0-daa2-481d-a48a-b3965cd69d9c",
"jcr:primaryType":"{http://www.jcp.org/jcr/nt/1.0}unstructured",
"multiValuedProperty":[
"value1",
"value2"
],
"testProperty":"testValue",
"children":{
"childNode":{
"self":"http://localhost:8090/resources/repo/default/items/testNode/childNode",
"up":"http://localhost:8090/resources/repo/default/items/testNode",
"id":"113e6eea-cbd2-4837-8344-5b28bbfd695c",
}
}
}
My config.json
{
"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" : 999
}
},
"query":{
"enabled":true,
"rebuildUponStartup":"if_missing",
"indexStorage": {
"type":"filesystem",
"location":"target/content/index",
"lockingStrategy":"simple",
"fileSystemAccessType":"auto"
}
},
}