Skip to content
Ranjan Kumar edited this page Jun 16, 2014 · 5 revisions

Folder

Folder is a way of grouping request/response based on a feature/module.

Internally it is based on a tree structure.

Getting list of nodes

GET http://localhost:8080/api/nodes

Getting node by Id

GET http://localhost:8080/api/nodes/{nodeId}

Creating a new node

POST http://localhost:8080//api/nodes/{parentId}/children

{"name" : "node name","projectId" : 1}

Note : Creating a node requires parent-node-id and project-id.

Getting child nodes

GET http://localhost:8080/api/nodes/{parentId}/children

Getting project tree

GET http://localhost:8080/api/nodes/{projectRefNodeId}/tree

Updating an existing node

PUT http://localhost:8080/api/nodes/{nodeId}

{ “id” : nodeId, "name" : “New name for the node"}

Deleting an existing node

DELETE  http://localhost:8080/api/nodes/{nodeId}
Clone this wiki locally