From 8f88be604c1abad3b00cdfea5bdc53d698368515 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 30 Sep 2022 15:42:18 +0200 Subject: [PATCH] Improving docs --- src/main/java/org/gcube/gcat/rest/Profile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/gcat/rest/Profile.java b/src/main/java/org/gcube/gcat/rest/Profile.java index cf51821..9469b30 100644 --- a/src/main/java/org/gcube/gcat/rest/Profile.java +++ b/src/main/java/org/gcube/gcat/rest/Profile.java @@ -143,12 +143,14 @@ public class Profile extends BaseREST implements org.gcube.gcat.api.interfaces.P * @return the profile definition * * @pathExample /profiles/EmptyProfile - * @responseExample application/json classpath:/api-docs-examples/profile/read-profile-response.json + * @responseExample application/xml classpath:/api-docs-examples/profile/read-profile-response.xml * + * @pathExample /profiles/EmptyProfile + * @responseExample application/json classpath:/api-docs-examples/profile/read-profile-response.json */ @GET @Path("/{" + PROFILE_NAME_PARAMETER + "}") - @Produces({MediaType.APPLICATION_XML, GCatConstants.APPLICATION_JSON_CHARSET_UTF_8}) + @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @StatusCodes ({ @ResponseCode ( code = 200, condition = "The profile exists.") })