-
Notifications
You must be signed in to change notification settings - Fork 1
ChildNodes
Wiki ▸ API Reference ▸ ChildNodes
See Authenticating
Create a new ChildNode:
curl --verbose --request POST --header "Content-Type: application/json" -d "{relationshipName:'parent_child_test',parent:'1',child:'2'}" http://localhost:8080/api/childNode/none --cookie cookies.txt
Edit a ChildNode:
curl --verbose --request PUT --header "Content-Type: application/json" -d "{id:3,relationshipName:'foo_bar_test',parent.id:'1',child.id:'2'}" http://localhost:8080/api/childNode/none --cookie cookies.txt
Get data about a ChildNode:
curl --request GET http://localhost:8080/api/childNode/{format}/1 --cookie cookies.txt
Wherein {format} can be replaced with:
- xml
- json
- none
List all ChildNodes:
curl --verbose --request POST --header "Content-Type: application/json" http://localhost:8080/api/childNode/list/{format} --cookie cookies.txt
Delete a ChildNode:
curl --request DELETE http://localhost:8080/api/childNode/none/1 --cookie cookies.txt
Comma separated list of ChildNode IDs:
curl --request DELETE http://localhost:8080/api/childNode/none/{1,2} --cookie cookies.txt