Symfony api skeleton
to install what is needed
composer install
bin/console doctrine:schema:update --force
====
routes enabled:
-post /oauth/v2/token
-post /users
-get /users
-get /users/{id}
====
First you need to create a user and a client
bin/console fos:user:create
Then insert a client in your database
INSERT INTO `oauth2_clients` VALUES (NULL, '3bcbxd9e24g0gk4swg0kwgcwg4o8k8g4g888kwc44gcc0gwwk4', 'a:0:{}', '4ok2x70rlfokc8g0wws8c8kwcokw80k44sg48goc0ok4w0so0k', 'a:1:{i:0;s:8:"password";}');
====
I recommand to use Postman to test your api
get a Token:
![get a token] (http://img15.hostingpics.net/pics/154728ScreenShot20160526at20106PM.png)
Register a user
![register a user] (http://img15.hostingpics.net/pics/356478ScreenShot20160526at20031PM.png)
Documentation:
[https://gist.github.com/tjamps/11d617a4b318d65ca583]
(https://gist.github.com/tjamps/11d617a4b318d65ca583)
[https://bitgandtter.wordpress.com/2015/09/03/symfony-a-restful-app-motivation/]
(https://bitgandtter.wordpress.com/2015/09/03/symfony-a-restful-app-motivation/)