POST for node/<nodeId>/ipinterface creates interface does not returns its data
Description
When you POST to rest/nodes you create the node and then return the node as xml so any default values will be filled in a returned to the client
POSTing to ipinterfaces and possible others is failing to return this data requiring the client to find a way to retrieve it
Acceptance / Success Criteria
None
Lucidchart Diagrams
Activity
Show:
Alejandro Galue May 1, 2012 at 2:14 PM
It was an easy fix.
Committed in revision f2bb8d32dadc60041176cd39c63dd35fb9881fe7 for 1.10.
Note: the snmpinterfaces had the same problem and has been fixed too.
Matt Brozowski August 24, 2011 at 7:55 PM
No... When you create a node via a post to REST you get back the XML for the node... this allows you to get the nodeid for example for use in other REST calls.
When you post to REST to create an ipInterface on a node.. you get back NOTHING rather than the XML for the created interface.. this is contrary to usual REST convention which should just return the XML for the created ipinterface.
Our other REST post calls should behave the same way by returning the details of the created object.
Benjamin Reed August 24, 2011 at 7:42 PM
Not sure I follow. Are you saying POSTing to ipInterfaces is not returning a list of ipInterfaces on the node?
When you POST to rest/nodes you create the node and then return the node as xml so any default values will be filled in a returned to the client
POSTing to ipinterfaces and possible others is failing to return this data requiring the client to find a way to retrieve it