@GetMapping(path = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
            public ResponseEntity findServiceById(@PathVariable(name = "id") final String id) throws Exception {
                if (NumberUtils.isParsable(id)) {
                    return ResponseEntity.ok(MAPPER.writeValueAsString(serviceRegistry.findServiceById(Long.parseLong(id))));
                }
                return ResponseEntity.ok(MAPPER.writeValueAsString(serviceRegistry.findServiceByExactServiceId(id)));
            }
This is {@link RestfulServiceRegistryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-rest-service-registry/src/test/java/org/apereo/cas/services/RestfulServiceRegistryTests.java