class AspspSearchController implements AspspSearchApi {

    @Override
    public ResponseEntity<AspspTO> getById(String id) {
        Optional<Aspsp> aspsp = aspspSearchService.findById(id);
        return aspsp.map(value -> ResponseEntity.ok(aspspMapper.toAspspTO(value)))
                   .orElseGet(() -> ResponseEntity.notFound().build());
    }

    public  AspspSearchController(AspspReadOnlyRepository aspspSearchService);

}