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

NodeTypes

ahonor edited this page Jul 19, 2012 · 2 revisions

WikiAPI ReferenceNodeTypes

Authenticating

See Authenticating

CREATE

Create a new NodeType:

curl --verbose --request POST --header "Content-Type: application/json" -d "{name:'new nodetype',description:this is the description',image:'Node.png'}" http://localhost:8080/api/nodeType/XML --cookie cookies.txt

SHOW

Get data about a NodeType:

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

LIST

List all NodeTypes:

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

Wherein {format} can be replaced with:

  • xml
  • json
  • none

DELETE

Delete a NodeType:

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

DELETE MULTIPLE

Comma separated list of NodeType IDs:

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

Clone this wiki locally