From 5c2f8dd779fe05e247e74e9be059ef5dd289a43f Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 30 Sep 2022 15:37:44 +0200 Subject: [PATCH] Fixed API --- 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 6721d7e..920543a 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.APPLICATION_XML) + @Produces({MediaType.MEDIA_TYPE_WILDCARD, GCatConstants.APPLICATION_JSON_CHARSET_UTF_8}) @StatusCodes ({ @ResponseCode ( code = 200, condition = "The profile exists.") })