getWithMapping should be used */ public function get( ServerRequest $request, ClassMetadataSearchRequestHandler $classMetadataSearchRequestHandler, ClassMetadataSearcherProxy $classMetadataSearcher ): void { $this->setSuccessJsonResponse( $classMetadataSearcher->findAll($classMetadataSearchRequestHandler->handle($request)) ); } public function getWithMapping( ServerRequest $request, ClassMetadataSearchRequestHandler $classMetadataSearchRequestHandler, ClassMetadataSearcherProxy $classMetadataSearcher ): void { $this->setSuccessJsonResponse( new ClassInformation( $classMetadataSearcher->findAll($classMetadataSearchRequestHandler->handle($request)) ,[ GetClassMetadataValuesService::DATA_TYPE_LIST => 'uri', GetClassMetadataValuesService::DATA_TYPE_TEXT => 'label' ] ) ); } }