Thread Starter
smp5
(@smp5)
Does anyone know the exact url I should use?
Thread Starter
smp5
(@smp5)
Fount the route that should do it. However, I geep getting ”rest route not found” error when submitting request
Thread Starter
smp5
(@smp5)
register_rest_route(
MVVWB_TOKEN . ‘/v1’,
‘/booking/(?P<id>\d+)’,
array(
‘methods’ => ‘GET’,
‘callback’ => array($this, ‘getBooking’),
‘permission_callback’ => array($this, ‘get_permission’)
)
);