mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
Remove unused imports, adding missing dots in descriptions, remove last TypeHint annotation
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
package sonia.scm.api.v2.resources;
|
package sonia.scm.api.v2.resources;
|
||||||
|
|
||||||
import com.webcohesion.enunciate.metadata.rs.ResponseCode;
|
|
||||||
import com.webcohesion.enunciate.metadata.rs.StatusCodes;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.media.Content;
|
import io.swagger.v3.oas.annotations.media.Content;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public class IncomingRootResource {
|
|||||||
@GET
|
@GET
|
||||||
@Path("{source}/{target}/changesets")
|
@Path("{source}/{target}/changesets")
|
||||||
@Produces(VndMediaType.CHANGESET_COLLECTION)
|
@Produces(VndMediaType.CHANGESET_COLLECTION)
|
||||||
@Operation(summary = "Incoming changesets", description = "Get the incoming changesets from source to target", tags = "Repository")
|
@Operation(summary = "Incoming changesets", description = "Get the incoming changesets from source to target.", tags = "Repository")
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
responseCode = "200",
|
responseCode = "200",
|
||||||
description = "success",
|
description = "success",
|
||||||
@@ -138,7 +138,7 @@ public class IncomingRootResource {
|
|||||||
@GET
|
@GET
|
||||||
@Path("{source}/{target}/diff")
|
@Path("{source}/{target}/diff")
|
||||||
@Produces(VndMediaType.DIFF)
|
@Produces(VndMediaType.DIFF)
|
||||||
@Operation(summary = "Incoming diff", description = "Get the incoming diff from source to target", tags = "Repository")
|
@Operation(summary = "Incoming diff", description = "Get the incoming diff from source to target.", tags = "Repository")
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
responseCode = "200",
|
responseCode = "200",
|
||||||
description = "success",
|
description = "success",
|
||||||
@@ -189,7 +189,7 @@ public class IncomingRootResource {
|
|||||||
@GET
|
@GET
|
||||||
@Path("{source}/{target}/diff/parsed")
|
@Path("{source}/{target}/diff/parsed")
|
||||||
@Produces(VndMediaType.DIFF_PARSED)
|
@Produces(VndMediaType.DIFF_PARSED)
|
||||||
@Operation(summary = "Incoming parsed diff", description = "Get the incoming parsed diff from source to target", tags = "Repository")
|
@Operation(summary = "Incoming parsed diff", description = "Get the incoming parsed diff from source to target.", tags = "Repository")
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
responseCode = "200",
|
responseCode = "200",
|
||||||
description = "success",
|
description = "success",
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ public class IndexResource {
|
|||||||
schema = @Schema(implementation = ErrorDto.class)
|
schema = @Schema(implementation = ErrorDto.class)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@TypeHint(IndexDto.class)
|
|
||||||
public IndexDto getIndex() {
|
public IndexDto getIndex() {
|
||||||
return indexDtoGenerator.generate();
|
return indexDtoGenerator.generate();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package sonia.scm.api.v2.resources;
|
package sonia.scm.api.v2.resources;
|
||||||
|
|
||||||
import com.webcohesion.enunciate.metadata.rs.ResponseCode;
|
|
||||||
import com.webcohesion.enunciate.metadata.rs.StatusCodes;
|
|
||||||
import de.otto.edison.hal.HalRepresentation;
|
import de.otto.edison.hal.HalRepresentation;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.media.Content;
|
import io.swagger.v3.oas.annotations.media.Content;
|
||||||
|
|||||||
@@ -65,8 +65,6 @@ public class RepositoryCollectionResource {
|
|||||||
@Path("")
|
@Path("")
|
||||||
@Produces(VndMediaType.REPOSITORY_COLLECTION)
|
@Produces(VndMediaType.REPOSITORY_COLLECTION)
|
||||||
@Operation(summary = "List of repositories", description = "Returns all repositories for a given page number with a given page size.", tags = "Repository")
|
@Operation(summary = "List of repositories", description = "Returns all repositories for a given page number with a given page size.", tags = "Repository")
|
||||||
|
|
||||||
|
|
||||||
@ApiResponse(
|
@ApiResponse(
|
||||||
responseCode = "200",
|
responseCode = "200",
|
||||||
description = "success",
|
description = "success",
|
||||||
|
|||||||
Reference in New Issue
Block a user