Remove Unnecessary fields from GET and DELETE (#11745)

This commit is contained in:
Mohit Yadav 2023-05-28 23:55:13 +05:30 committed by GitHub
parent 79d6d0bcd3
commit 3255c5980a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -517,8 +517,7 @@ public class TableResource extends EntityResource<Table, TableRepository> {
public Table getSampleData(
@Context UriInfo uriInfo,
@Context SecurityContext securityContext,
@Parameter(description = "Id of the table", schema = @Schema(type = "UUID")) @PathParam("id") UUID id,
@Valid TableData tableData)
@Parameter(description = "Id of the table", schema = @Schema(type = "UUID")) @PathParam("id") UUID id)
throws IOException {
OperationContext operationContext = new OperationContext(entityType, MetadataOperation.VIEW_SAMPLE_DATA);
authorizer.authorize(securityContext, operationContext, getResourceContextById(id));
@ -540,8 +539,7 @@ public class TableResource extends EntityResource<Table, TableRepository> {
public Table deleteSampleData(
@Context UriInfo uriInfo,
@Context SecurityContext securityContext,
@Parameter(description = "Id of the table", schema = @Schema(type = "UUID")) @PathParam("id") UUID id,
@Valid TableData tableData)
@Parameter(description = "Id of the table", schema = @Schema(type = "UUID")) @PathParam("id") UUID id)
throws IOException {
OperationContext operationContext = new OperationContext(entityType, MetadataOperation.EDIT_SAMPLE_DATA);
authorizer.authorize(securityContext, operationContext, getResourceContextById(id));