Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

ChildNodes

ahonor edited this page May 23, 2012 · 1 revision

WikiAPI ReferenceChildNodes

Authenticating

See Authenticating

CREATE

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

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

SHOW

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

List all ChildNodes:

curl --verbose --request POST --header "Content-Type: application/json" http://localhost:8080/api/childNode/list/{format} --cookie cookies.txt

DELETE

Delete a ChildNode:

curl --request DELETE http://localhost:8080/api/childNode/none/1 --cookie cookies.txt

DELETE MULTIPLE

Comma separated list of ChildNode IDs:

curl --request DELETE http://localhost:8080/api/childNode/none/{1,2} --cookie cookies.txt

Clone this wiki locally