Ori Liel has posted comments on this change.

Change subject: restapi: #853739 - Actions Should Return Entities In Body
......................................................................


Patch Set 2:

Hi Ravi, 

First of all, the whole approach will be changed and I'll resubmit a patch 
which returns a link to the relevant entity, instead of the entity itself. 

But as for your question, there could (theoretically) be actions that do not 
change the state of an entity in the engine, or maybe they change the state of 
more than one entity. By adding a signature that gets the boolean 
'returnEntityWhenDone' I leave it to the programmer's decision whether this 
specific action should return an entity or not. 

But again, this is a theoretical discussion, because we will change to the 
links approach

--
To view, visit http://gerrit.ovirt.org/9466
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic636b7205fa7b6fbb5d98efdbcd7976e9beb2187
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Ori Liel <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to