Passing url as parameter results in error as below: {"code":"rest_no_route","message":"No route was found matching the URL and request method","data":{"status":404}}
How is this done in WP API?
register_rest_route( 'myap/v1', 'operation1/(?P<website>[regex for wesite here])',array(
'methods' => 'GET',
'callback' => 'myCallback'
) );