anmolbabu has uploaded a new change for review.

Change subject: restapi : Facilitate accept-type specification by file extension
......................................................................

restapi : Facilitate accept-type specification by file extension

Facilitate accept-type specification by file extension

Change-Id: I86c63405e6d8b28c483079782d5f52b75410a5ae
Signed-off-by: Anmol Babu <[email protected]>
---
M backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/63/30263/1

diff --git 
a/backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml 
b/backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
index 4649a71..9d708a4 100644
--- a/backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
+++ b/backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
@@ -22,6 +22,11 @@
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";
   version="3.0">
 
+  <context-param>
+    <param-name>resteasy.media.type.mappings</param-name>
+    <param-value>json: application/json, xml: application/xml, pdf: 
application/pdf</param-value>
+  </context-param>
+
   <filter>
     <filter-name>CSRFProtection</filter-name>
     
<filter-class>org.ovirt.engine.api.common.security.CSRFProtectionFilter</filter-class>


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I86c63405e6d8b28c483079782d5f52b75410a5ae
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: anmolbabu <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to