Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Add model servlet
......................................................................
restapi: Add model servlet
This patch adds a servlet that servers the representation of the model,
in its original source form and also in the XML and JSON
representations. The servlet is available in "/ovirt-engine/api/model".
It supports the following content types:
application/json
application/octet-stream
application/xml
These content typs can be indicated using the HTTP "Accept" header, as
usual, and also the "accept" query parameter:
GET /ovirt-engine/api/model?accept=application/json
File extensions can also be used to indicate the requested content type.
For example, the following request will indicate JSON:
GET /ovirt-engine/api/model.json
Change-Id: I895a6923849402f8f392336c8aa69e03a8e90183
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M backend/manager/modules/restapi/metamodel/pom.xml
A backend/manager/modules/restapi/metamodel/server/README.md
A backend/manager/modules/restapi/metamodel/server/pom.xml
A
backend/manager/modules/restapi/metamodel/server/src/main/java/org/ovirt/api/metamodel/server/MimeTypes.java
A
backend/manager/modules/restapi/metamodel/server/src/main/java/org/ovirt/api/metamodel/server/ModelServlet.java
A
backend/manager/modules/restapi/metamodel/server/src/main/modules/org/ovirt/api/metamodel-server/main/module.xml
M
backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
M backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
8 files changed, 344 insertions(+), 0 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved; Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/49161
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I895a6923849402f8f392336c8aa69e03a8e90183
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>