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

NodeTypeRelationships

ahonor edited this page Jul 19, 2012 · 2 revisions

WikiAPI ReferenceNodeTypeRelationships

Authenticating

See Authenticating

CREATE

Create a new NodeTypeRelationship:

curl --verbose --request POST --header "Content-Type: application/json" \
-d "{roleName:'${NAME}', parentCardinality:'${PARENT_CARDINALITY}', childCardinality:'${CHILD_CARDINALITY}', parent.id:'${PARENT}', child.id: '${CHILD}' }" \
http://localhost:8080/api/nodeTypeRelationship/XML --cookie cookies.txt

SHOW

Get data about a NodeTypeRelationship:

curl --request GET http://localhost:8080/api/nodeTypeRelationship/{format}/{id} --cookie cookies.txt

LIST

List all NodeTypeRelationships:

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

Wherein {format} can be replaced with:

  • xml
  • json
  • none

DELETE

Delete a NodeTypeRelationship:

curl --verbose --request DELETE http://localhost:8080/api/nodeTypeRelationship/none/{id} --cookie cookies.txt

DELETE MULTIPLE

Comma separated list of NodeTypeRelationship IDs:

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

Clone this wiki locally