.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. _crud: Preparation --------------- .. rst-class:: bignums-xxl #. Define appropriate route. Create your route collection file under :file:`Configuration/Routes.yml`: #. Your Resource repository must extend our predefined **AbstractRepository**. Create your repository under :file:`Classes/Domain/Repository/EntityRepository.php`: .. code-block:: php [ '_descendAll' => [ '_exclude' => ['pid'] ] ] ]; } .. tip:: **getRootName** should return the name of your resource. In this case it's **entity** Don't forget to rename it with your real name. #. Your Controller must extend our predefined **AbstractApiController**. Create your view under :file:`Classes/Controller/DemoApiController.php`: .. code-block:: php