[ovirt-users] Some questions about Ovirt REST API
Ondra Machacek
omachace at redhat.com
Thu Apr 12 07:43:53 UTC 2018
On 04/11/2018 08:19 AM, gsswzt at pku.edu.cn wrote:
> Hi,
>
> I wants to creating my own service under ../vms/{vmid}/myservice.Here is
> my methods:
>
> 1. create VmMytestService in
> /https://github.com/oVirt/ovirt-engine-api-model project./
> add/@Service VmMytestService mytests() in /VmService .java
> 2. mvn install it and change the root pom.xml
> /<model.version>4.3.9-SNAPSHOT</model.version> / in my Ovirt project.
> 3.create BackendVmMytestService implements VmMytestResource
Did you also in BackendVmResource implemented 'mytests' method?
> 4.override /get() and add() /methods.
>
> After that, I use /curl/ tool to send GET and POST request. GET is
> working and return.
> However, I get this return after POST request.
>
> Would you help me with that issue?
>
> Thanks,
> wenzt
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
More information about the Users
mailing list