Presented by: SIF 3.0 REST URL Structure Components of the SIF3 REST URL Joerg Huber.

Slides:



Advertisements
Similar presentations
Pierre-Johan CHARTRE Java EE - JAX-RS - Pierre-Johan CHARTRE
Advertisements

Give it a REST already Arnon Rotem-Gal-Oz VP R&D xsights
LiNC Developer Meetup Welcome!. Our job is to make your life easier APIs Tools and workflow Documentation Stay in touch: developers.lithium.com Join the.
Single Page Apps with Breeze and Ruby.
Presented by: AU Assets Evolution of the SIF Common Framework Joerg Huber.
Presented by: SIF 3.0 Concepts DSWG August 2013 Joerg Huber.
Presented by: SIF 3.0 Environments, Zones & Contexts Melbourne Developer’s Workshop November 2013 Joerg Huber.
Presented by: SIF 3.0 REST Services Melbourne Developer’s Workshop November 2013 Joerg Huber.
Presented by: SIF 3.0 REST Framework Melbourne Developer’s Workshop November 2013 Joerg Huber.
Query Verb Proposal Ashok Malhotra, Oracle
Presented by: SIF3: First Consumer - Java Joerg Huber SIF3 Consumer: Get Students Exercise.
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
Hypertext Transfer Protocol Information Systems 337 Prof. Harry Plantinga.
Peoplesoft: Building and Consuming Web Services
Presented by: SIF3 REST Framework Joerg Huber Open-Source SIF3 Development Framework Developed by Systemic Pty Ltd Sponsored by.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
Presented by: SIF3: Provider Exercise - Java Joerg Huber SIF3 Provider Exercise: SchoolInfo Provider.
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
Presented by: SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
CollectionSpace Service REST-based APIs June 2009 Face-to-face Aron Roberts U.C. Berkeley IST/Data Services.
Presented by: SIF3: Providers Joerg Huber SIF3 Providers: Source of Truth.
Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise.
Copyright © Cybage Software Pvt. Ltd. All Rights Reserved. Cybage Confidential. Drupal Web Services 1 Authored by: Chaitanya Anil Kulkarni Presented.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
Presented by: SIF3: Events Joerg Huber SIF3 Events & Live Demo.
BIT 286: Web Applications Lecture 10 : Thursday, February 5, 2015 ASP.Net Form Submission.
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
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.
Appendix E: Overview of HTTP ©SoftMoore ConsultingSlide 1.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
Presented by: SIF 3.0 Environment Management Consumer Environments Direct Environments Java Joerg Huber.
Presented by: SIF 3.0 Environments, Zones & Contexts Environments, Zones, Contexts and their Relationship Joerg Huber.
06 | HTTP Services with Web API Bruno Terkaly | Technical Evangelist Bret Stateham | Technical Evangelist.
ICM – API Server & Forms Gary Ratcliffe.
RESTful Web Services What is RESTful?
Web Technologies Lecture 10 Web services. From W3C – A software system designed to support interoperable machine-to-machine interaction over a network.
ΕΚΤ Access to Knowledge ΕΚΤ Access to Knowledge CERIF API: Access and reuse research information in CRIS Dimitris Karaiskos Vasilis Bonis, Nikos Pougounias.
Presented by: SIF3: Multi-Object CRUD Joerg Huber SIF3 Consumer: Multi-Object CRUD Exercise.
Herzog August Bibliothek Wolfenbüttel Backend, Service, Listener VuFind's new SOLR connection Originally Presented By David Maus Herzog August Bibliothek.
DICOMwebTM 2015 Conference & Hands-on Workshop University of Pennsylvania, Philadelphia, PA September 10-11, 2015 DICOMweb Workflow API (UPS-RS) Jonathan.
Server-side http General form of http response/request GET request method POST request method Responses Servlet support.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
Data and tools on the Web have been exposed in a RESTful manner. Taverna provides a custom processor for accessing such services.
Better RESTFul API – Best Practices
What’s new in the SIF3 World?
Node.js Express Web Applications
2nd Interoperability testing issues
Data Virtualization Tutorial… CORS and CIS
Node.js Express Web Services
SIF 3.0 Concepts Workshop Idea13 Joerg Huber.
Addressing the Beast: Single Sign-On II
Service Paths & Query By Example (QBE): Query Mechanism
Ashish Pandit IT Architect, Middleware & Integration Services
Testing REST IPA using POSTMAN
WEB API.
REST Client Tutorial by Pavan Ethic Coder
REST.
SIF 3.x Concepts & Terms, xPress & RicOne API
SIF3: First Consumer - Java
Service Paths & Query By Example (QBE): Query Mechanism
SIF3: Provider Exercise - Java
Building production-ready APIs with ASP.NET Core 2.2
Requests and Server Response Codes
CS4961 Software Design Laboratory Understand Aquila Backend
Web-Services and RESTful APIs
SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
.NET Framework V3.5+ & RESTful web services
Chengyu Sun California State University, Los Angeles
SIF3 REST Framework Open-Source SIF3 Development Framework
Restful APIs 101 Laura
Presentation transcript:

Presented by: SIF 3.0 REST URL Structure Components of the SIF3 REST URL Joerg Huber

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 2 Components of SIF3 REST Call A SIF3 REST Call can consist of the following parts:  Base URL Segment  Service URL Segment  Matrix Parameters  Query Parameters  Header Fields  Payload  Single-Object vs. Multi-Object URLs

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 3 Base URL Segment Retrieved from the “infrastructureService” node with the name “requestConnector” in environment Example

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 4 Service URL Segment  Generally the name of the SIF Object in plural form (append “s”)  Optionally append ‘Id’ of SIF Object or  Optionally append singular form of SIF Object Name Example - StudentPersonal  /StudentPersonals  /StudentPersonals/  /StudentPersonals/StudentPersonal

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 5 Matrix Parameters Used instead of Query Parameters because they help in standard caching:  If no ‘?’ (Query Parameter) is used in URL the result can be cached  Matrix Parameters don’t use the ‘?’ but are part of the URL so the data returned can be cached  Notation: ‘; = {; = }’  Used in SIF3 to set the zone and context in a URL If not provided: Default Zone and/or Context is used Example - StudentPersonal  /StudentPersonals;contextId=current  /StudentPersonals/ ;zoneId=4001  /StudentPersonals;zoneId=4001;contextId=current

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 6 Query Parameters Everything after a ‘?’ in the URL is referred to as Query Parameter.  Returned data is not cached  Notation: ‘? = {& = }’  Used in SIF3: xQuery Info Example - StudentPersonal  /StudentPersonals?where=

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 7 Header Fields SIF3 uses standard and custom HTTP Request/Response header fields.  Not part of the URL  Different header fields for Request and Response Example Standard Header Fields - Request  Authorization (authorisation token)  If-None-Match (caching info) Example Custom Header Fields - Request  generatorId (Optional: Who makes request)  navigationId (query paging support)

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 8 Payload The final part of a SIF3 REST Service call is the actual payload or the XML Message.  Payload is XML for now (JSON later)  Most requests for REST Calls have a payload  Some Request don’t have a payload (DELETE for single object)  Most responses for single-object operations don’t have a payload. Exception: GET  Responses for multi-object operations do have a payload.

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 9 Single-Object vs Multi-Object URLs Single Object URLs: s  GET: /StudentPeronals/{refId} s  PUT: /StudentPeronals/{refId} + payload s  DELETE: /StudentPeronals/{refId} EXCEPTION: CREATE an Object! s  POST: /StudentPeronals/StudentPersonal + payload Multi-Object URLs: s  GET: /StudentPeronals s  PUT: /StudentPeronals + payload s  POST: /StudentPeronals + payload s  DELETE: /StudentPeronals + payload

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 10 SIF3 Frameworks (Java &.Net) You can forget about everything you just heard as part of this presentation! Why? The SIF3 Frameworks abstract all these details for you. You never deal with an URL, header field, matrix parameter …

© Systemic Pty Ltd September 2014 Training Course - Sydney: SIF3 - URL Structure 11 Question Time… Questions?