Answer the question
In order to leave comments, you need to log in
How to test symfony api?
Hello! Probably a dumb question, but still ... I'm doing
a rest api on symfony. Created an api project using composer, as recommended from the official documentation. Created controllers, models, made migrations, set up a database. Now the question is how can this be tested? The server:start command is not available in the console. How to start the server?
Answer the question
In order to leave comments, you need to log in
If we are talking about running a local server then
php -S localhost:8080 -t public/
(The port may be different, if sf version 3 and below, then specify web instead of public)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question