Urnik – REST JSON odjemalci – odmor – avtentikacija strežniki orodja.

Slides:



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

Representational State Transfer (REST): Representing Information in Web 2.0 Applications this is the presentation Emilio F Zegarra CS 2650.
REST Vs. SOAP.
Introduction to Web Services
REST (Representational State Transfer)
Catalog REST for data providers ECHO Technical Interchange 04/30/13 3:15pm EST Doug Newman.
Overview of Twitter API Nathan Liu. Twitter API Essentials Twitter API is a Representational State Transfer(REST) style web services exposed over HTTP(S).
Attie Naude 14 May 2013 Windows Azure Mobile Services.
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July Solution Architect,Microsoft.
1Proprietary and Confidential AirVantage API – Getting started David SCIAMMA – June 13th 2014.
Using Evernote and Google Docs in your web or mobile application (and potentially Dropbox and Skydrive) By Peter Messenger Senior Developer – Triple Point.
#spsevents #spsphx SPS EVENTS PHX Know REST for the Query AN INTRODUCTION TO REST FOR SHAREPOINT 2013 ERIC J OSZAKIEWSKI, MCTS, MS, MCPS.
Web API for Mobile JaxARCSIG April About Me David Fekke L.L.C. Mobile apps for iOS Regular presenter at JaxDUG, JSSUG and JaxFusion Writing Web.
Location based social networking on Android phones – integrated with Facebook. Simple and easy to use.
Introduction to Backend James Kahng. Install Node.js.
MapGuide&FDO Web Services RESTful Web Services FOSS4G 2007Haris Kurtagic.
Data snap RAD studio communication Dori Exterman RAD Consultant Dori Exterman RAD Consultant.
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control Maarten
Beyond the UI Using Tools to Improve Testing Jeremy Traylor
Building Android Apps with Mobile Services Speaker Name Speaker Title Speaker Company Twitter:
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
Whois-RWS: A RESTful Web Service for WHOIS Andy Newton, Chief Engineer.
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.
Channel Partner Conference 2013 Yarra Valley Developer Session ABM Annual Channel Partner Conference 2013.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
RESTful Web Service 2014 년 12 월 한연희
1 Seminar on Service Oriented Architecture Principles of REST.
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
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.
RESTful Web Services What is RESTful?
Use Outlook Task API to access tasks stored on user’s mailbox. These REST API’s are  Simple to use.  Supports CRUD.  JSON structured.  OAuth 2.0.
REST API Design. Application API API = Application Programming Interface APIs expose functionality of an application or service that exists independently.
Embt.co/sprint-rest-json-services Blog Notes: Building RESTful servers. In C++ Builder Developer Skill Sprint Tips, Tricks and Techniques The Ultimate.
Building production ready APIs with ASP.NET Core 2.0
Brice Copy, Mirjam Labrenz
The Client-Server Model
API (Application Program Interface)
API Security Auditing Be Aware,Be Safe
Digital Offers: Schema.org
REST: Web Services Abel Sanchez.
Cosc 5/4730 REST services.
Node.js Express Web Services
An introduction to REST for SharePoint 2013
Advanced Web-based Systems | Misbhauddin
What is REST API ? A REST (Representational State Transfer) Server simply provides access to resources and the REST client accesses and presents the.
Introduction Web Environments
IBM Data Server Gateway for OData
Beautiful REST + JSON APIs
Service Oriented Architecture
HTTP, RESTful Web Services, HTTP and REST Tools: Postman, Fiddler
Ashish Pandit IT Architect, Middleware & Integration Services
Testing REST IPA using POSTMAN
Azure AD Line Of Business Application Integration
WEB API.
02 | Web API Basic Design Jeremy Likness | Principal Architect
Building Self Describing Web APIs
SIF 3.x Concepts & Terms, xPress & RicOne API
$, $$, $$$ API testing Edition
Web Server Design Week 16 Old Dominion University
Building production-ready APIs with ASP.NET Core 2.2
Generate Header & URL Install PostMan for Chrome (looks like a man with a jetpack) Under the auth tab, set it to basic Put in the admin username and password.
Web APIs In computer programming, an application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application.
Uniform Resource Locators (URLs)
Web-Services and RESTful APIs
WCF Data Services and Silverlight
NEECOM – May 22, 2019 Todd L Gould, CEO
.NET Framework V3.5+ & RESTful web services
Chengyu Sun California State University, Los Angeles
REST API Design Borrowed heavily from:
Restful APIs 101 Laura
Presentation transcript:

Urnik 09.00 – 10.30 REST JSON odjemalci 10.30 – 11.00 odmor 11.00 – 12.30 avtentikacija strežniki orodja

Songsterr

REpresentational State Transfer arhitektura www prenosni medij = http ukazi = http ukazi podatki = URL + http telo [json,xml] kontrolne informacije = http header napake = http status

CRUD REST SQL Create POST [PUT] INSERT Read GET SELECT Update PUT [PATCH] UPDATE Delete DELETE

Podatki URL fizični strežnik + REST strežnik [API] + resource + parametri http://www.songsterr.com /a/ra/ songs/byartists.json ?artists=Queen ID je lahko del sredstva http://server/api/people/123/update?age=28

Http standardi Upoštevanje statusov 301 => preusmeritev Upoštevanje standardov [http headerji] Vmesni pomnilniki (cache proxy) Tip podatkov (accept, content-type) Nabor znakov (accept-charset)

Zakaj REST? Enostavna implementacija Berljivost http nivo obstaja povsod IoT JavaScript Berljivost Izraba spletne infrastructure Strežniki, proxy strežniki, firewalli Razširjenost strežnikov Facebook, Twitter, Google, Amazon, Dropbox …

Hypermedia as the Engine of Application State GET /account/12345 <?xml version="1.0"?> <account> <account_number>12345</account_number> <balance currency="usd">100.00</balance> <link rel="deposit" href="http://somebank/account/12345/deposit" /> <link rel="withdraw" href="http://somebank/account/12345/withdraw" /> <link rel="transfer" href="http://somebank/account/12345/transfer" /> <link rel="close" href="http://somebank/account/12345/close" /> </account>

Hypermedia as the Engine of Application State GET /account/12345 <?xml version="1.0"?> <account> <account_number>12345</account_number> <balance currency="usd">-25.00</balance> <link rel="deposit" href="http://somebank/account/12345/deposit" /> </account>

JavaScript Object Notation key:value, key:value, …. key:value { "person" : { "id" : 123, "name" : "Alice", "age" : Null, "friends" : [42, 177, 13] } }

JSON in Delphi System.JSON [XE6] REST.Json [XE6] TJSONValue, TJSONObject, … REST.Json [XE6] Tjson.ObjectToJsonString TJson.JsonToObject

Odjemalci http REST Client Library [XE5] DataSnap ICS, Indy, WinINet, System.Net.HttpClient REST Client Library [XE5] REST.Client, REST.HttpClient, REST.Authenticator.* … DataSnap TDSRESTConnection [D10] System.Net.HttpClient

JSON → DataSet TRESTResponseDatasetAdapter

Avtentikacija Simple [TSimpleAuthenticator] GET/POST, nešifrirano Basic [THTTPBasicAuthenticator] RFC2617 Header, BASE64 OAuth 1.0a [TOAuth1Authenticator] gesla se ne prenašajo zastarel OAuth2 [TOAuth2Authenticator] večina »velikih« (Facebook, Google …)

OAuth2 odjemalec http spletni strežnik Resource Owner Authorization An Overview of OAuth2 using the REST Client Components http://embt.co/blog-oauth2 odjemalec http spletni strežnik 1) Authorization Request Resource Owner 2) Authorization Grant 3) Authorization Grant Authorization Server 4) Access Token 5) Access Token Resource Server 6) Protected Resource

Strežniki DataSnap www Indy, ICS ORM mORMot

DataSnap XE Enterprise+ Win32/64 VCL/FireMonkey Odjemalci RAD Studio: Win32/64, OS X/32, iOS, Android Proxy: Android, BlackBerry, iOS, Windows Phone JavaScript: brskalniki, naprave REST: karkoli

DataSet → JSON TDataSetRESTRequestAdapter github: andrea-magni/TDataSetRESTRequestAdapter

Orodja REST Debugger XE5, source Postman Chrome Fiddler .NET 2/4

Vprašanja?