Basic RESTful API with Symfony 3 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle
The API we are creating in this gist will follow these rules :
- The API only returns JSON responses
- All API routes require authenticationu
- Authentication is handled via OAuth2 with
passwordGrant Type only (no need for Authorization pages and such).
- API versioning is managed via a subdomain (e.g.
The API will be written in PHP with the Symfony 3 framework. The following SF2 bundles are used :
|# <type>: (If applied, this commit will...) <subject> (Max 50 char)|
|# |<---- Using a Maximum Of 50 Characters ---->||
|# Explain why this change is being made|
|# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->||
|# Provide links or keys to any relevant tickets, articles or other resources|
|# Example: Github issue #23|