bp_rest_api_init() Fire the 'bp_rest_api_init' action, where BuddyPress registers REST API endpoints.
bp_rest_api_init Fires the 'bp_rest_api_init' function, where BuddyPress registers REST API endpoints.