Change in ovirt-engine[master]: restapi: Add GET and HEAD methods to the system resource

Juan Hernandez has submitted this change and it was merged. Change subject: restapi: Add GET and HEAD methods to the system resource ...................................................................... restapi: Add GET and HEAD methods to the system resource The "SystemResource" interface generated by the JAX-RS code generator doesn't include the following two methods: @GET Response get(); @HEAD Response head(); Instead of that the methods and the annotations are part of the implementation class. In previous versions of Resteasy this worked correctly, but in the newer version included in WildFly the annotations aren't recognized. As a result requests to /ovirt-engine/api return nothing. To solve this issue this patch changes the JAX-RS code generator so that it explicitly adds these two methods to the "SystemResource" interface. Change-Id: I7a0dfa3bb7e3d7a3087580e79d2fe576a2daec34 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> --- M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendApiResource.java M backend/manager/modules/restapi/metamodel/tool/src/main/java/org/ovirt/api/metamodel/tool/JaxrsGenerator.java 2 files changed, 22 insertions(+), 4 deletions(-) Approvals: Sandro Bonazzola: Looks good to me, but someone else must approve Sharon Naftaly: Looks good to me, but someone else must approve Juan Hernandez: Verified; Looks good to me, approved Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/48727 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I7a0dfa3bb7e3d7a3087580e79d2fe576a2daec34 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Sandro Bonazzola <sbonazzo@redhat.com> Gerrit-Reviewer: Sharon Naftaly <snaftaly@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
juan.hernandez@redhat.com