From b7b58971a55bdbed55a9c0bdea532c4c03600b96 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 30 Sep 2022 15:38:06 +0200 Subject: [PATCH] Fixed media type --- src/main/java/org/gcube/gcat/rest/Profile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/gcat/rest/Profile.java b/src/main/java/org/gcube/gcat/rest/Profile.java index 920543a..6cfd2af 100644 --- a/src/main/java/org/gcube/gcat/rest/Profile.java +++ b/src/main/java/org/gcube/gcat/rest/Profile.java @@ -148,7 +148,7 @@ public class Profile extends BaseREST implements org.gcube.gcat.api.interfaces.P */ @GET @Path("/{" + PROFILE_NAME_PARAMETER + "}") - @Produces({MediaType.MEDIA_TYPE_WILDCARD, GCatConstants.APPLICATION_JSON_CHARSET_UTF_8}) + @Produces({MediaType.APPLICATION_XML, GCatConstants.APPLICATION_JSON_CHARSET_UTF_8}) @StatusCodes ({ @ResponseCode ( code = 200, condition = "The profile exists.") })