@ GET @ Produces ( MediaType . APPLICATION_JSON ) @ RequiresPermissions ( I18nPermissions . KEY_READ ) public Response getKeys ( @ QueryParam ( PAGE_INDEX ) @ DefaultValue ( "0" ) long pageIndex , @ QueryParam ( PAGE_SIZE ) @ DefaultValue ( "10" ) int pageSize , @ QueryParam ( IS_MISSING ) Boolean isMissing , @ QueryParam ( IS_APPROX ) Boolean isApprox , @ QueryParam ( IS_OUTDATED ) Boolean isOutdated , @ QueryParam ( SEARCH_NAME ) String searchName ) { WebAssertions . assertIf ( pageSize > 0 , "Page size should be greater than zero." ) ; KeySearchCriteria keySearchCriteria = new KeySearchCriteria ( isMissing , isApprox , isOutdated , searchName ) ; Page page = new Page ( pageIndex , pageSize ) ; return Response . ok ( keyFinder . findKeysWithTheirDefaultTranslation ( page , keySearchCriteria ) ) . build ( ) ; }
Returns a list of filtered keys without their translations .