<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div>Do you mean <i>@override</i> <i>getMytestsResource()&nbsp;</i> in&nbsp;<span></span><span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">BackendVmResource ?</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: transparent;">I have done that, otherwise GET would not pass.</span></div>
<blockquote style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em"><div><img src="cid:_Foxmail.1@86f7142f-d193-f104-c159-57d158d01685" border="0"></div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b>&nbsp;<a href="mailto:omachace@redhat.com">Ondra Machacek</a></div><div><b>Date:</b>&nbsp;2018-04-12&nbsp;15:43</div><div><b>To:</b>&nbsp;<a href="mailto:gsswzt@pku.edu.cn">gsswzt@pku.edu.cn</a>; <a href="mailto:users@ovirt.org">users</a></div><div><b>Subject:</b>&nbsp;Re: [ovirt-users] Some questions about Ovirt REST API</div></div></div><div><div>&nbsp;</div>
<div>&nbsp;</div>
<div>On 04/11/2018 08:19 AM, gsswzt@pku.edu.cn wrote:</div>
<div>&gt; Hi,</div>
<div>&gt; </div>
<div>&gt; I wants to creating my own service under ../vms/{vmid}/myservice.Here is </div>
<div>&gt; my methods:</div>
<div>&gt; </div>
<div>&gt; 1. create VmMytestService in </div>
<div>&gt; /https://github.com/oVirt/ovirt-engine-api-model project./</div>
<div>&gt; add/@Service VmMytestService mytests() in /VmService .java</div>
<div>&gt; 2. mvn install it and change the root pom.xml </div>
<div>&gt; /&lt;model.version&gt;4.3.9-SNAPSHOT&lt;/model.version&gt; /&nbsp;in my Ovirt project.</div>
<div>&gt; 3.create BackendVmMytestService implements VmMytestResource</div>
<div>&nbsp;</div>
<div>Did you also in BackendVmResource implemented 'mytests' method?</div>
<div>&nbsp;</div>
<div>&gt; 4.override /get() and add() /methods.</div>
<div>&gt; </div>
<div>&gt; After that, I use /curl/&nbsp; tool to send GET and POST request. GET is </div>
<div>&gt; working and return.</div>
<div>&gt; However, I get this return after POST request.</div>
<div>&gt; </div>
<div>&gt; Would you help me with that issue?</div>
<div>&gt; </div>
<div>&gt; Thanks,</div>
<div>&gt; wenzt</div>
<div>&gt; </div>
<div>&gt; </div>
<div>&gt; _______________________________________________</div>
<div>&gt; Users mailing list</div>
<div>&gt; Users@ovirt.org</div>
<div>&gt; http://lists.ovirt.org/mailman/listinfo/users</div>
<div>&gt; </div>
</div></blockquote>
</body></html>