@GetMapping(path = "/registeredServices/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Get history for a service by id", parameters = @Parameter(
        description = "The service numeric id",
        name = "id", required = true, in = ParameterIn.PATH))
    public List<HistoricalEntity> historyByServiceId(@PathVariable("id") final long id) {
        val registeredService = servicesManager.getObject().findServiceBy(id);
        RegisteredServiceAccessStrategyUtils.ensureServiceAccessIsAllowed(registeredService);
        return objectVersionRepository.getObject().getHistory(registeredService);
    }
History by service id as list.

@param id the id
@return the list
support/cas-server-support-javers/src/main/java/org/apereo/cas/version/EntityHistoryEndpoint.java