1 / 18

Building apps for Office and SharePoint 2013, Part 2 ( using the web technologies you know and love)

Building apps for Office and SharePoint 2013, Part 2 ( using the web technologies you know and love). Keenan Newton 3-021. Agenda. App Hosting Options. REST & CSOM APIs. Hosting: Choice of Three Architecture Approaches. Provider-Hosted App “Bring your own server hosting infrastructure”.

cid
Download Presentation

Building apps for Office and SharePoint 2013, Part 2 ( using the web technologies you know and love)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building apps for Office and SharePoint 2013, Part 2(using the web technologies you know and love) Keenan Newton 3-021

  2. Agenda App Hosting Options REST & CSOM APIs

  3. Hosting: Choice of Three Architecture Approaches Provider-Hosted App “Bring your own server hosting infrastructure” SharePoint Web Your Hosted Site Cloud-based Apps Get remote events from SharePoint Use CSOM/REST + OAuth to work with SP Autohosted App Windows Azure + SQL Azure provisioned invisibly as apps are installed SharePoint Web Azure Parent Web • SharePoint-Hosted App • Provision an isolated sub web on a parent web • Reuse web elements (lists, files, out-of-box web parts) • No server code allowed; use client JavaScript for logic, UX App Web (from WSP)

  4. Comparing SharePoint Hosted vs. Cloud Hosted Apps

  5. Choosing between Cloud-Hosted and SharePoint-Hosted.

  6. A Cloud-Hosted App

  7. Agenda App Hosting Options REST & CSOM APIs

  8. Changes from SharePoint 2010 to 2013 • The client.svc service extended with REST capabilities • client.svc now supports direct access from REST clients • client.svc accepts HTTP GET, PUT, POST requests • Implemented in accordance with OData protocol • CSOM Extended new APIs • New APIs for SharePoint Server functionality • New API for Windows Phone Applications

  9. What’s covered in the new CSOM/REST APIs? Search Social Taxonomy Workflow Analytics Sharing Publishing eDiscovery IRM BCS And much, much more!

  10. Changes by SKU • In SharePoint Foundation • No Significant Changes to CSOM apart from REST support • Primary investment is adding REST support to existing API • In SharePoint Server • New APIs have been added with CSOM and REST support

  11. SharePoint 2013 Remote API _api is new alias for _vti_bin/client.svc Server Client CSOM REST OData JSON JavaScript Library Silverlight Library .Net CLR Library Custom Client Code

  12. Why is REST Important? • Significant Industry Momentum • Simple and Easy to Use • Much easier to use than SOAP-based Web service • Higher productivity when using JavaScript and jQuery • Results can be returned in JSON and ATOM format • Test in a browser • Platform agnostic • Each query is submitted with a unique URL • Results can be cached by proxy servers

  13. REST URLs in SharePoint 2013 • CSOM URLS can go through _api folder • Simplifies URLs that need to be built • Removes client.svc file name from URL • You can replace this URL • http://contososerver/_vti_bin/client.svc/web • With this URL • http://contososerver/_api/web

  14. Mapping Objects to Resources • Example REST URLs targeting SharePoint sites • _api/web/lists • _api/web/lists/getByTitle('Announcements') • _api/web/getAvailableWebTemplates(lcid=1033)

  15. Comparing CSOM and REST

  16. Related Sessions • Tomorrow 3:30 PM – B92 Odyssey – Apps for Office and SharePoint Development… • Thursday 8:30 AM – B92 Odyssey – Building end-to-end apps on SharePoint… • Thursday 12:00 PM – B92 Stinger – Developing an App for SharePoint Autohosted…

  17. Resources • http://Dev.office.com Please submit session evals on the Build Windows 8 App or at http://aka.ms/BuildSessions

More Related