Skip to content

Commit

Permalink
Add query parameter to list custom attributes filtered by content type (
Browse files Browse the repository at this point in the history
  • Loading branch information
lubomirw authored Aug 15, 2023
1 parent 19f5f84 commit 823e1d9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.czertainly.api.model.common.UuidDto;
import com.czertainly.api.model.common.attribute.v2.BaseAttribute;
import com.czertainly.api.model.common.attribute.v2.CustomAttribute;
import com.czertainly.api.model.common.attribute.v2.content.AttributeContentType;
import com.czertainly.api.model.common.attribute.v2.content.BaseAttributeContent;
import com.czertainly.api.model.core.auth.Resource;
import io.swagger.v3.oas.annotations.Operation;
Expand All @@ -29,6 +30,7 @@
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Optional;

@RestController
@RequestMapping("/v1/attributes/custom")
Expand Down Expand Up @@ -66,7 +68,7 @@ public interface CustomAttributeController {
@Operation(summary = "List Custom Attributes")
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "list of available Custom Attributes")})
@RequestMapping(method = RequestMethod.GET, produces = {"application/json"})
List<CustomAttributeDefinitionDto> listCustomAttributes();
List<CustomAttributeDefinitionDto> listCustomAttributes(@RequestParam(required = false) AttributeContentType attributeContentType);

@Operation(summary = "Custom Attribute details")
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "Custom Attribute details retrieved")})
Expand Down

0 comments on commit 823e1d9

Please sign in to comment.