SharePoint Guy, Protiviti Introduction to Developing Solutions with Visual Studio and Office 365 REST APIs Doug Hemminger, MVP SharePoint Guy, Protiviti
SharePoint Saturday Columbus 2015 Steering Committee Volunteers SharePoint Saturday Columbus 2015 Twitter: @BuckeyeSPUG #SPSCBUS Speakers http://www.clker.com/cliparts/p/f/5/k/n/b/superhero-outline-bw-hi.png
Steering Committee Volunteers Speakers Parking Place your form on your car’s dash. Avoid $50 fine. Main Hall, near registration Lunch 12:45pm – 1:30pm Vendor Presentations 1:00pm – 1:30pm Snacks 2:30pm – 3:10pm Raffles 4:30pm – 5:00pm Turn in your Sponsor BINGO card Must be present to win http://www.clker.com/cliparts/p/f/5/k/n/b/superhero-outline-bw-hi.png
Steering Committee Volunteers Speakers http://www.clker.com/cliparts/p/f/5/k/n/b/superhero-outline-bw-hi.png
Elevator Brewery and Draught Steering Committee Volunteers Speakers SharePint Elevator Brewery and Draught 161 N. High St, Columbus, OH 43215 www.ElevatorBrewing.com 6:00pm…..
Chicago About Me Contact Me I am a Chicago-based Microsoft SharePoint Server MVP and a SharePoint Solution Architect for Protiviti Contact Me E-mail: doug@doughemminger.com Twitter: @DougHemminger Blog: www.SharePointDoug.com
Agenda Background Get Started Develop an App The Opportunity Why REST Why OData REST Queries through the browser Get Started Get an Office 365 Developer Site Set up Azure Active Directory Install Developer Tools Build Your First App Develop an App Hello World Search REST API
Background
Source: http://www. microsoftvirtualacademy
Why REST? Representational State Transfer (REST) is a software architecture style consisting of guidelines and best practices for creating scalable web services. REST is popular and easy to use Easier to use than SOAP and WSDL-based web services Much easier to call from JavaScript and jQuery Results come back in JSON or ATOM format REST is stateless REST is cacheable
Why Odata? OData standardizes data access APIs for CRUD operations by mapping them to HTTP verbs Read operations mapped to HTTP GET Insert operations mapped to HTTP POST Update operations mapped to HTTP PUT or HTTP MERGE Delete operations mapped to HTTP DELETE Source: https://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx
URI Construction URI = [Service Root] + [Resource Path] + [Query Options] https://protosocompany.sharepoint.com/sites/dougdev/_vti_bin/client.svc/web/lists/getByTitle('Apps In Testing')/Items?$select=AppName,Created Service Root = https://protosocompany.sharepoint.com/sites/dougdev/_vti_bin/client.svc Resource Path = /web/lists/getByTitle('Apps In Testing')/Items Query Options = ?$select=AppName,Created Note that, in SharePoint, “_vti_bin/client.svc” can be replaced with _api DEMO: Accessing REST APIs through the browser
Get Started
Get An Office 365 Developer Site Microsoft SharePoint 12/25/2018 Get An Office 365 Developer Site Must have an Office 365 Subscription that supports a developer site Office 365 Midsize Business Office 365 Enterprise E1, E3, E4, or K1 Office 365 Education A2, A3, or A4 Office 365 Government G1, G3, G4, or K1 1 Year Free Trial is available No Developer Site on Office 365 Small Business DEMO: Creating an Office 365 Developer Site Source: https://msdn.microsoft.com/library/2ec857d5-dc6f-4cf6-ba45-adc845ef2a25%28Office.15%29.aspx © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Setup Azure Active Directory Can be done with an existing tenant OR Can be done with the underlying Office 365 Tenant DEMO: Set up Azure Active Directory with the underlying Office 365 tenant Instructions: https://msdn.microsoft.com/office/office365/HowTo/setup-development-environment#bk_CreateAzureSubscription
Install Developer Tools Office Developer Tools for Visual Studio 2013: http://aka.ms/OfficeDevToolsForVS2013
Develop an App
Resources Title Url Office Dev Center http://dev.office.com/ Setup Your Office 365 Development Environment https://msdn.microsoft.com/office/office365/HowTo/setup-development-environment API Sandbox https://apisandbox.msdn.microsoft.com/ Introduction to Office 365 Development http://www.microsoftvirtualacademy.com/training-courses/introduction-to-office-365-development REST API reference and samples (good video fro Kirk Evans) https://msdn.microsoft.com/en-us/library/office/jj860569(v=office.15).aspx Populate Office 365 Developer Tenant with Sample Data http://dev.office.com/code-samples-detail/2305 Office 365 Start Project http://dev.office.com/code-samples-detail/1511
Thank You!