Chapter 2. Client-side Programming
The Microsoft SharePoint 2013 app model does not support running server-side code within the SharePoint host environment. As a result, SharePoint developers cannot utilize the server-side API in apps. Instead, app developers must use the client-side API, which consists of the Client-Side Object Model (CSOM) and the Representational State Transfer (REST) API.