REST API provides a powerful, convenient and simple Web Services API to interact with Force.com platform. REST API uses same underlying data model and standard
ActionFunction component triggers an action whenever a user clicks on a custom link or a button inside a visualforce page. In visualforce, actionFunction is used