Python and REST Kevin Hibma.

Slides:



Advertisements
Similar presentations
Give it a REST already Arnon Rotem-Gal-Oz VP R&D xsights
Advertisements

REST Introduction 吴海生 博克软件(杭州)有限公司.
Building and using REST information services Rion Dooley.
ARINs RESTful Provisioning Interface Tim Christensen.
Building RESTful Interfaces
Introduction to Web Services and Web API’s Richard Holowczak Baruch College December, 2014.
Snejina Lazarova Senior QA Engineer, Team Lead CRMTeam Dimo Mitev Senior QA Engineer, Team Lead SystemIntegrationTeam Telerik QA Academy SOAP-based Web.
More APIs: Web Services CMPT 281. Announcements Project milestone Lab: – Web services examples.
CS 415 N-Tier Application Development By Umair Ashraf July 6,2013 National University of Computer and Emerging Sciences Lecture # 9 Introduction to Web.
Integrating Complementary Tools with PopMedNet TM 27 July 2015 Rich Schaaf
RESTful Web Development With Nodejs and Express. REST Stands for REpresentational State Transfer Has the following constraints: ◦Client-Server ◦Stateless.
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
Web Services An introduction for eWiSACWIS May 2008.
Python and REST Kevin Hibma. What is REST? Why REST? REST stands for Representational State Transfer. (It is sometimes spelled "ReST".) It relies on a.
Leveraging ArcGIS Online Elevation and Hydrology Services
Nadir Saghar, Tony Pan, Ashish Sharma REST for Data Services.
Copyright © Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. Drupal Web Services 1 Authored by: Chaitanya Anil Kulkarni Presented.
DM_PPT_NP_v01 SESIP_0715_JR HDF Server HDF for the Web John Readey The HDF Group Champaign Illinois USA.
API Crash Course CWU Startup Club. OUTLINE What is an API? Why are API’s useful? What is HTTP? JSON? XML? What is a RESTful API? How do we consume an.
Esri UC 2014 | Technical Workshop | Creating Geoprocessing Services Kevin Hibma.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Advanced Web Technologies Lecture #4 By: Faraz Ahmed.
Representational State Transfer (REST). What is REST? Network Architectural style Overview: –Resources are defined and addressed –Transmits domain-specific.
REST By: Vishwanath Vineet.
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
Feeling RESTful? Well, first we’ll define a Web Service –A web page meant to be consumed by a computer via an autonomous program as opposed to a web browser.
Esri UC 2014 | Technical Workshop | Administering ArcGIS for Server with Python Jon Bodamer.
National College of Science & Information Technology.
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Lesson 11: Web Services and API's
ArcGIS for Server Security: Advanced
CS 330 Class 7 Comments on Exam Programming plan for today:
The Client-Server Model
API (Application Program Interface)
RESTful Sevices Distributed Objects Presented by: Shivank Malik
Content from Python Docs.
Better RESTFul API – Best Practices
CISC103 Web Development Basics: Web site:
Getting Started with Plot.ly
Understanding SOAP and REST calls The types of web service requests
WEB SERVICES.
REST: Web Services Abel Sanchez.
REST- Representational State Transfer Enn Õunapuu
Cosc 5/4730 REST services.
Node.js Express Web Services
AJAX and REST.
Unit – 5 JAVA Web Services
C++ Tango REST API implementation
What is REST API ? A REST (Representational State Transfer) Server simply provides access to resources and the REST client accesses and presents the.
Lesson 11: Web Services & API's
Applied Cyber Infrastructure Concepts Fall 2017
CISC103 Web Development Basics: Web site:
WEB API.
$, $$, $$$ API testing Edition
Cloud Web Filtering Platform
Testing RESTful Web APIs
Introduction to Web Services
Lesson 11: Web Services and API's
Consuming Geoprocessing and Hosted Analytic Services in ArcGIS for Desktop Kevin Hibma.
Planning and Storyboarding a Web Site
REST APIs Maxwell Furman Department of MIS Fox School of Business
RESTful Web Services.
Leveraging ArcGIS Online Elevation and Hydrology Services
ArcGIS Online – The Road Ahead
Web APIs In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application.
Week 05 Node.js Week 05
Introduction to Portal for ArcGIS
WCF Data Services and Silverlight
NEECOM – May 22, 2019 Todd L Gould, CEO
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Python and REST Kevin Hibma

[NEW] ArcGIS Python API New API that makes interacting with Esri RESTful technologies easy Going into beta, released with ArcGIS 10.5 Scripting and Automation iPython Notebooks View webmaps, visualize results Not an arcpy replacement.

[NEW] ArcGIS Python API >> conda install –c esri arcgis >> python (optionally) >> conda install jupyter from arcgis.gis import * gis = GIS(“http://www.arcgis.com”, “xxxx”, “xxxx”) gis.groups.list() gis.content.search(“Chiptole”)

What is REST? Why REST? REST stands for Representational State Transfer. (It is sometimes spelled "ReST".) It relies on a stateless, client-server, cacheable communications protocol -- and in virtually all cases, the HTTP protocol is used. REST is an architecture style for designing networked applications. > rest.elkstein.org/2008/02/what-is-rest.html Ummm what? (search has a lot of similar definitions) For this session we’ll use the term REST to loosely describe how we (python scripts) connect and talk to a server / web service end point. Why? Because its easier than SOAP! (another way to talk across the internet)

What can I do? ArcGIS Server ArcGIS Online (arcgis.com) Consume, create, update, administer ArcGIS Online (arcgis.com) Consume, create, update, configure Web services (both ArcGIS and not-ArcGIS) Consume, update (with permission)

Development pattern (optionally) Authenticate (get a token) depending on operation Build URLs to hit different end points http://server/arcgis/rest/service/QUERY Most requests are POST (vs. GET) Send and receive a JSON payload A REST service could send data back in another format

Time for some code

What to put where? Read API help doc Use Fiddler (how do I know what a request needs and what a response gives) Read API help doc http://esriurl.com/restapi Use Fiddler With fiddler running, perform actions in a browser or other client inspect requests / response WebBrowsers have built in consoles to watch requests URL Query parameters Response

Links Documentation and examples http://esriurl.com/scriptRESTAPI Ready to go tools, scripts and command line http://esriurl.com/AGStools Code as iPython notebook https://github.com/khibma/PythonREST_UC2015