Remove unused imports, adding missing dots in descriptions, remove last TypeHint annotation

This commit is contained in:
Florian Scholdei
2020-02-19 17:00:33 +01:00
parent 841ea1e1b5
commit 56202e5266
5 changed files with 3 additions and 10 deletions

View File

@@ -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;

View File

@@ -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",

View File

@@ -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();
} }

View File

@@ -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;

View File

@@ -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",