-
Notifications
You must be signed in to change notification settings - Fork 19
Ximdex CMS API: NodeInfo
Javi Carretero edited this page Sep 6, 2013
·
5 revisions
This is simplest action you can perform into a node: retrieve information about it.
Description | Get the information about a specific node |
---|---|
URL | /api/node |
Parameters | ximtoken (required): session token obtained with the login action. |
nodeid (required): the node ID we want to get the info. | |
Response | Array of nodetypes containing the following information about each one: idnodetype, the nodetype ID; name, the name of the nodetype; description, the description of the nodetype; mimetype, the mimetype of the nodetype. |
Example | |
POST Request #1 | curl -X POST --data "ximtoken=XXABCDEFGHXX" http://example.org/ximdex/api/nodetype |
GET Request #1 | curl -X GET "http://example.org/ximdex/api/nodetype?ximtoken=XXABCDEFGHXX" |
Response #1 | {"error":0,"data":[{"idnodetype":"5001","name":"Root","description":"Root node of Ximdex","mimetype":"httpd\/unix-directory"},{"idnodetype":"5002","name":"ControlCenter","description":"Ximdex control center","mimetype":"httpd\/unix-directory"}, … ]} |