dtolabs / yana2

Yet Another Node Authority ... because you wanted an agile Real-Time Service Model (RTSM)
8 stars 1 forks source link

Return representation after ChildNode create #116

Closed ahonor closed 12 years ago

ahonor commented 12 years ago

The /api/childNode create function should return a representation of the new relationship. Eg

curl --verbose --request POST --header "Content-Type: application/json" -d "{relationshipName:'parent_child_test',parent:'1',child:'2'}" http://localhost:8080/api/childNode/none --cookie cookies.txt

Produces:

<childNodes>
   <childNode id="1" parentNodeId="3" parentName="qa" childNodeId="1" childName="ubuntu" relationshipName="node"/>
</childNodes>