Read the docs:
- https://ru.wikipedia.org/wiki/HTTP
- Research HTTP method GET, POST, PUT, PATCH, DELETE
- https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
- http://symfony.com/doc/current/introduction/http_fundamentals.html
- http://symfony.com/doc/current/routing.html
- https://symfony.com/doc/current/controller.html
- http://symfony.com/doc/current/best_practices/controllers.html
- http://rubular.com/
- http://php.net/manual/en/language.exceptions.php
Research Symfony code:
- Symfony\Bundle\FrameworkBundle\Controller\Controller
- Symfony\Component\HttpKernel\EventListener\RouterListener
- Symfony\Component\Routing\Matcher\UrlMatcherInterface
- Symfony\Component\HttpKernel\Exception* - use proper exception in your controllers
HW (Blog):
- Create Controller with several actions
- Build script. See example https://github.com/geekhub-php/CheTheatre/tree/master/bin
- Readme - How setup project
- Readme - list of links
- Use GET, POST, PUT, PATCH, DELETE methods for your actions
- Return JsonResponse from your controllers
- PostMan\Advanced Rest Client
Advanced:
- Curl
- Tests with curl