@add_route("<STR_LIT>",<EOL>"<STR_LIT>", methods=["<STR_LIT:GET>"])<EOL>def search(context, request):
return api.get_batched()<EOL>
Generic search add_route

    <Plonesite>/@@API/v2/search -> returns all contents of the portal
    <Plonesite>/@@API/v2/search?portal_type=Folder -> returns only folders
    ...