greeting:
    path: "/{name}"
    defaults: { _controller: \App\Controller\GreeterController::greetAction, _format: json }
    requirements: { _format: json }
    methods: [ GET ]

greeting:
    path: "/{name}"
    defaults: { _controller: \App\Controller\GreeterController::greetAction, _format: json, name: "world" }
    requirements: { _format: json }
    methods: [ GET ]

Add a default value for the name
Add a default value for the name
