API stands for application program interface. It is essentially a contract provided from one piece of software to another piece of software. The analogy given in the video I watched was of a restaurant. You as a customer sitting waiting to order is the client, the kitchen is the server, and the actual server for your food is the API. In this scenario, the API is the server because it is formatted to take a certain order in a specific way and bring back a certain meal/ data.
Representational state transfer (REST) is an architecture style for designing networked applications. It relies on a stateless, client-server protocol(HTTP). It treats server objects as resources that can be created or destroyed.
In short API is the messenger and REST lets us use HTTP requests to format those messages. As we learned from AJAX HTTP methods are GET, POST, PUT, and DELETE.<div class='sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded' id='like-post-wrapper-155635758-403-5d085d2da9365' data-src='https://widgets.wp.com/likes/#blog_id=155635758&post_id=403&origin=trilamanila.com&obj_id=155635758-403-5d085d2da9365' data-name='like-post-frame-155635758-403-5d085d2da9365'><h3 class="sd-title">Like this:</h3><div class='likes-widget-placeholder post-likes-widget-placeholder' style='height: 55px;'><span class='button'><span>Like</span></span> <span class="loading">Loading...</span></div><span class='sd-text-color'></span><a class='sd-link-color'></a></div>