Skip to content

Commit

Permalink
adding response details for the versions api (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-gunjan authored Dec 5, 2023
1 parent e49a239 commit 5bda006
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 5bda006

Please sign in to comment.