composer install
symfony server:start
Request to the endpoint with [email protected]
query parameter:
curl "http://127.0.0.1:8000/[email protected]"
# {"name":"John Doe","email":"[email protected]"}
Request to the endpoint with no parameters:
curl "http://127.0.0.1:8000"
# {"name":"Unknown","email":"Unavailable"}