Symfony 4 / Sonata: Create a REST API
Written by admin
on 18/08/2020
In this article, we will see how to create a REST API with
FOS/RestBundle, including authentication, and a Swagger-like
documentation generator.
List of necessary
bundles:friendsofsymfony/rest-bundle:
Provides a set of tools to help develop a RESTful APIhttps://github.com/FriendsOfSymfony/FOSRestBundlejms/serializer-bundle:
Allows object serialization.https://packagist.org/packages/jms/serializer-bundlelexik/jwt-authentication-bundle:
Manages JSON web tokens.htt...