Use controller pattern and symfony serializer
Added text search to api.