This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
NodeTypeRelationships
ahonor edited this page Jul 19, 2012
·
2 revisions
Wiki ▸ API Reference ▸ NodeTypeRelationships
See Authenticating
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
Get data about a NodeTypeRelationship:
curl --request GET http://localhost:8080/api/nodeTypeRelationship/{format}/{id} --cookie cookies.txt
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 a NodeTypeRelationship:
curl --verbose --request DELETE http://localhost:8080/api/nodeTypeRelationship/none/{id} --cookie cookies.txt
Comma separated list of NodeTypeRelationship IDs:
curl --request DELETE http://localhost:8080/api/nodeTypeRelationship/none/{1,2} --cookie cookies.txt