Wordpress - rewrite or hide wp-json in url
snippet in htaccess

Wordpress - rewrite or hide wp-json in url

user710

add_filter( 'rest_url_prefix', function() {
    return 'api';
});