@GetMapping(
        path = "/query",
        produces = {
            MediaType.APPLICATION_JSON_VALUE,
            MEDIA_TYPE_SPRING_BOOT_V2_JSON,
            MEDIA_TYPE_SPRING_BOOT_V3_JSON,
            MediaType.APPLICATION_FORM_URLENCODED_VALUE,
            MEDIA_TYPE_CAS_YAML
        })
    @Operation(
        summary = "Query the ticket registry. Querying capabilities vary and depend on the registry implementation.",
        parameters = {
            @Parameter(name = "type",
                required = false,
                description = "The type of the ticket to process, i.e. TGT",
                in = ParameterIn.QUERY),
            @Parameter(name = "id",
                required = false,
                description = "The ticket id to query. Requires type to be specified.",
                in = ParameterIn.QUERY),
            @Parameter(name = "decode", required = false,
                schema = @Schema(type = "boolean"),
                description = "Whether the registry should return objects in raw form or decode and transform and check each ticket",
                in = ParameterIn.QUERY),
            @Parameter(name = "count",
                schema = @Schema(type = "integer"),
                description = "Limit the number of objects and tickets returned in the response",
                required = false, in = ParameterIn.QUERY)
        })
    public List<?> query(@Valid @ModelAttribute final TicketRegistryQueryCriteria criteria) {
        return ticketRegistryProvider.getObject().query(criteria);
    }
Query the registry.

@param criteria the criteria
@return the object
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/TicketRegistryEndpoint.java