Merged in bugfix/openapi_errors (pull request #417)

prevent using same classloader multiple times
This commit is contained in:
Sebastian Sdorra
2020-03-04 08:31:08 +00:00
11 changed files with 140 additions and 108 deletions

View File

@@ -185,7 +185,8 @@ public class BranchRootResource {
description = "create success",
headers = @Header(
name = "Location",
description = "uri to the created branch"
description = "uri to the created branch",
schema = @Schema(type = "string")
)
)
@ApiResponse(responseCode = "401", description = "not authenticated / invalid credentials")

View File

@@ -95,13 +95,14 @@ public class GroupCollectionResource {
@POST
@Path("")
@Consumes(VndMediaType.GROUP)
@Operation(summary = "Create group", description = "Creates a new group.", tags = "Group")
@Operation(summary = "Create group", description = "Creates a new group.", tags = "Group", operationId = "group_create")
@ApiResponse(
responseCode = "201",
description = "create success",
headers = @Header(
name = "Location",
description = "uri to the created group"
description = "uri to the created group",
schema = @Schema(type = "string")
)
)
@ApiResponse(responseCode = "401", description = "not authenticated / invalid credentials")

View File

@@ -109,7 +109,8 @@ public class RepositoryCollectionResource {
description = "create success",
headers = @Header(
name = "Location",
description = "uri to the created repository"
description = "uri to the created repository",
schema = @Schema(type = "string")
)
)
@ApiResponse(responseCode = "401", description = "not authenticated / invalid credentials")

View File

@@ -9,9 +9,9 @@ import lombok.extern.slf4j.Slf4j;
import sonia.scm.AlreadyExistsException;
import sonia.scm.NotFoundException;
import sonia.scm.repository.NamespaceAndName;
import sonia.scm.repository.RepositoryPermission;
import sonia.scm.repository.Repository;
import sonia.scm.repository.RepositoryManager;
import sonia.scm.repository.RepositoryPermission;
import sonia.scm.repository.RepositoryPermissions;
import sonia.scm.web.VndMediaType;
@@ -71,7 +71,11 @@ public class RepositoryPermissionRootResource {
@ApiResponse(
responseCode = "201",
description = "creates",
headers = @Header(name = "Location", description = "uri of the created permission")
headers = @Header(
name = "Location",
description = "uri of the created permission",
schema = @Schema(type = "string")
)
)
@ApiResponse(
responseCode = "404",

View File

@@ -96,7 +96,8 @@ public class RepositoryRoleCollectionResource {
description = "create success",
headers = @Header(
name = "Location",
description = "uri to the created repository role"
description = "uri to the created repository role",
schema = @Schema(type = "string")
)
)
@ApiResponse(responseCode = "401", description = "not authenticated / invalid credentials")

View File

@@ -105,7 +105,8 @@ public class UserCollectionResource {
description = "create success",
headers = @Header(
name = "Location",
description = "uri to the created user"
description = "uri to the created user",
schema = @Schema(type = "string")
)
)
@ApiResponse(responseCode = "401", description = "not authenticated / invalid credentials")