L
L
lemonlimelike2020-11-03 21:24:26
symfony
lemonlimelike, 2020-11-03 21:24:26

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

1 answer(s)
D
Daria Motorina, 2020-11-03
@lemonlimelike

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 question

Ask a Question

731 491 924 answers to any question