mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-06 17:17:10 +02:00
Fix API description for url import (#1805)
This commit is contained in:
@@ -31,6 +31,7 @@ import com.google.common.base.Strings;
|
||||
import com.google.common.io.ByteSource;
|
||||
import com.google.inject.Inject;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.headers.Header;
|
||||
import io.swagger.v3.oas.annotations.media.Content;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.responses.ApiResponse;
|
||||
@@ -130,9 +131,10 @@ public class RepositoryImportResource {
|
||||
@ApiResponse(
|
||||
responseCode = "201",
|
||||
description = "Repository import was successful",
|
||||
content = @Content(
|
||||
mediaType = VndMediaType.REPOSITORY,
|
||||
schema = @Schema(implementation = ImportRepositoryFromUrlDto.class)
|
||||
headers = @Header(
|
||||
name = "Location",
|
||||
description = "uri to the created repository",
|
||||
schema = @Schema(type = "string")
|
||||
)
|
||||
)
|
||||
@ApiResponse(
|
||||
|
||||
Reference in New Issue
Block a user