From 5bda0069b2f1e1eb1141ae47307f50623f0f913b Mon Sep 17 00:00:00 2001 From: gs-gunjan <72594207+gs-gunjan@users.noreply.github.com> Date: Tue, 5 Dec 2023 16:16:43 +0530 Subject: [PATCH] adding response details for the versions api (#433) --- .../depot/server/resources/projects/ProjectsResource.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legend-depot-core-data-services/src/main/java/org/finos/legend/depot/server/resources/projects/ProjectsResource.java b/legend-depot-core-data-services/src/main/java/org/finos/legend/depot/server/resources/projects/ProjectsResource.java index 60078a6bb..af82150e6 100644 --- a/legend-depot-core-data-services/src/main/java/org/finos/legend/depot/server/resources/projects/ProjectsResource.java +++ b/legend-depot-core-data-services/src/main/java/org/finos/legend/depot/server/resources/projects/ProjectsResource.java @@ -20,6 +20,8 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.finos.legend.depot.services.api.projects.ProjectsService; @@ -72,6 +74,7 @@ public Response getProjectCoordinates(@PathParam("groupId")String groupId, @Path @Path("/projects/{groupId}/{artifactId}/versions") @ApiOperation(ResourceLoggingAndTracing.GET_VERSIONS) @Produces(MediaType.APPLICATION_JSON) + @ApiResponses(@ApiResponse(response = String.class, code = 200, message = "successful operation", responseContainer = "List")) public Response getVersions(@PathParam("groupId") String groupId, @PathParam("artifactId") String artifactId, @QueryParam("snapshots") @ApiParam("wether to return snapshot versions too") @DefaultValue("false") boolean includeSnapshots) {