I am working on a new symfony 2 project. I am studying this structure at the same time. For user management, I use the FOSUserBundle package. My project works very well, I can log in, register, log out and all other available commands.
The thing is, I want to make a smartphone application that will use the API of my Symfony application. In the application, the user will have to log in or register. Can I also use the FOSUserBundle methods for the API?
I studied another package that is very nice for creating an API, this is FOSRestBundle. If there is no solution, do you think that I will have to create my own user method, for example:
/api/login
/api/registrer
Then, inside this method, do I redirect the FOSUserBundle methods? I just wonder what is the best and cleanest way to log in and sign up for FOSUserBundle from a smartphone, so using the API
thanks
source
share