Improving docs

This commit is contained in:
Luca Frosini 2022-09-30 15:42:18 +02:00
parent 17ffb800cf
commit 8f88be604c
1 changed files with 4 additions and 2 deletions

View File

@ -143,12 +143,14 @@ public class Profile extends BaseREST implements org.gcube.gcat.api.interfaces.P
* @return the profile definition * @return the profile definition
* *
* @pathExample /profiles/EmptyProfile * @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 @GET
@Path("/{" + PROFILE_NAME_PARAMETER + "}") @Path("/{" + PROFILE_NAME_PARAMETER + "}")
@Produces({MediaType.APPLICATION_XML, GCatConstants.APPLICATION_JSON_CHARSET_UTF_8}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@StatusCodes ({ @StatusCodes ({
@ResponseCode ( code = 200, condition = "The profile exists.") @ResponseCode ( code = 200, condition = "The profile exists.")
}) })