Develop Mobile Front Ends Using Mobile Application Framework A - 2

Similar documents
RESTful Services. Distributed Enabling Platform

ReST 2000 Roy Fielding W3C

Understanding RESTful APIs and documenting them with Swagger. Presented by: Tanya Perelmuter Date: 06/18/2018

Other architectures are externally built or expanded

Services Web Nabil Abdennadher

RESTFUL WEB SERVICES - INTERVIEW QUESTIONS

PROCE55 Mobile: Web API App. Web API.

Lesson 14 SOA with REST (Part I)

About 1. Chapter 1: Getting started with odata 2. Remarks 2. Examples 2. Installation or Setup 2. Odata- The Best way to Rest 2

PRISMTECH. RESTful DDS. Expanding the reach of the information backbone. Powering Netcentricity

REST Easy with Infrared360

Copyright 2014 Blue Net Corporation. All rights reserved

Introduction to RESTful Web Services. Presented by Steve Ives

REST. And now for something completely different. Mike amundsen.com

ITP 342 Mobile App Development. APIs

ITP 140 Mobile Technologies. Mobile Topics

RESTful API Design APIs your consumers will love

PS/2 Web Services

Web Services Week 10

Integration and Extensibility

Oracle Mobile Hub. Complete Mobile Platform

Session 12. RESTful Services. Lecture Objectives

Scalable Microservice Based Architecture For Enabling DMTF Profiles

04 Webservices. Web APIs REST Coulouris. Roy Fielding, Aphrodite, chp.9. Chp 5/6

REST API Developer Preview

Apache Wink Developer Guide. Draft Version. (This document is still under construction)

REST AND AJAX. Introduction. Module 13

WWW, REST, and Web Services

Broadening Web Service Access through REST and OData?

Introduction to Worklight Integration IBM Corporation

Etanova Enterprise Solutions

Designing RESTful Web Applications. Ben Ramsey

GEL Scripts Advanced. Your Guides: Ben Rimmasch, Yogesh Renapure

Lesson 15 SOA with REST (Part II)

Build Mobile Cloud Apps Effectively Using Oracle Mobile Cloud Services (MCS)

Introduction and Overview

LOG8430: Architecture logicielle et conception avancée

APIs - what are they, really? Web API, Programming libraries, third party APIs etc

SRIJAN MANANDHAR MQTT BASED COMMUNICATION IN IOT. Master of Science thesis

describe the functions of Windows Communication Foundation describe the features of the Windows Workflow Foundation solution

Beginner s Guide to Cordova and Mobile Application Development

Software Design COSC 4353/6353 DR. RAJ SINGH

Apex REST API. SUMMER OF APIs. Sandeep Bhanot Developer Alex Toussaint Senior Product

Lesson 1 Key-Terms Meanings: Web Connectivity of Devices and Devices Network

REST in a Nutshell: A Mini Guide for Python Developers

Migrating traditional Java EE applications to mobile

Mobile Computing. Logic and data sharing. REST style for web services. Operation verbs. RESTful Services

Network Programmability with Cisco Application Centric Infrastructure

Backends and Databases. Dr. Sarah Abraham

REST - Representational State Transfer

DatabaseRESTAPI

TECHNICAL NOTE HOW TO USE WEB SERVICES. Document: Kalipso_TechDocs_Web_Services. Revision: 1.0. Kalipso version:

Kim Dalsgaard. Co-owner of, and Software Designer at Trifork Athene Co-founder of Aarhus Ruby Brigade

smap a Simple Measurement and Actuation Profile for Physical Information

MOBILE CLOUD SERVICE. Build Your Mobile Strategy Not Just Your Mobile Apps

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Accessing the Progress OpenEdge AppServer. From Progress Rollbase. Using Object Script

All About Open & Sharing

Assignment 2. Start: 15 October 2010 End: 29 October 2010 VSWOT. Server. Spot1 Spot2 Spot3 Spot4. WS-* Spots

REST Web Services Objektumorientált szoftvertervezés Object-oriented software design

Take a Load Off with U2 RESTful Web Services. Nik Kesic, Lead Technical Support for Rocket U2

Restful Interfaces to Third-Party Websites with Python

Life on the Web is fast and furious should we be more RESTful?

RESTful Web services

Kepware Whitepaper. IIoT Protocols to Watch. Aron Semle, R&D Lead. Introduction

Service Oriented Architectures (ENCS 691K Chapter 2)

The new SAP PI REST adapter Unveiled v1.0. SAPience TECH commission, Nov Dimitri Sannen SAP Solution Architect

Developing Mobile Application Framework By Using RESTFul Web Service with JSON Parser

A Comparison of Service-oriented, Resource-oriented, and Object-oriented Architecture Styles

The Backend of OE Mobile in OpenEdge Mike Fechner, Consultingwerk Ltd. PUG Challenge Americas, June 2013

REST API s in a CA Plex context. API Design and Integration into CA Plex landscape

RESTful Web Services. 20-Jan Gordon Dickens Chariot Solutions

Backends and Databases. Dr. Sarah Abraham

INF 212 ANALYSIS OF PROG. LANGS. INTERACTIVITY. Prof. Crista Lopes

Introduction to REST. Kenneth M. Anderson University of Colorado, Boulder CSCI 7818 Lecture 6 08/27/2008. University of Colorado 2008

Distribution and web services

WWW. HTTP, Ajax, APIs, REST

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

RESTful -Webservices

Distributed Systems. Web Services (WS) and Service Oriented Architectures (SOA) László Böszörményi Distributed Systems Web Services - 1

ORACLE MOBILE HUB. Build Your Mobile Strategy Not Just Your Mobile Apps

CS 498RK FALL RESTFUL APIs

Oracle RESTful Services A Primer for Database Administrators

Copyright 2014, Oracle and/or its affiliates. All rights reserved.

Oracle Service Cloud Integration for Developers Ed 1

A RESTful Approach to the Management of Cloud Infrastructure. Swit Phuvipadawat Murata Laboratory

RESTful Service Composition with JOpera

uick Start Guide 1. Install Oracle Java SE Development Kit (JDK) version or later or 1.7.* and set the JAVA_HOME environment variable.

REST A brief introduction

Intro to XML. Borrowed, with author s permission, from:

Hello everyone. My name is Kundan Singh and today I will describe a project we did at Avaya Labs.

Building the Web of Things: frameworks and tools for fast prototyping Web-based physical mashups

ITP 342 Mobile App Dev

Data Avenue REST API. Ákos Hajnal, Zoltán Farkas November, 2015

Back-end architecture

Oracle Service Cloud Integration for Developers Ed 1

DreamFactory Security Guide

it is

Introduction to Web Services & SOA

We are ready to serve Latest Testing Trends, Are you ready to learn? New Batch Details

Transcription:

Develop Mobile Front Ends Using Mobile Application Framework A - 2

Develop Mobile Front Ends Using Mobile Application Framework A - 3

Develop Mobile Front Ends Using Mobile Application Framework A - 4

REST is focused on accessing named resources through a single consistent interface. Many developers found SOAP cumbersome and hard to use. For example, working with SOAP in JavaScript means writing a ton of code to perform extremely simple tasks, because you must create the required XML structure absolutely every time. REST provides a light-weight alternative. Instead of using XML to make a request, REST relies on a simple URL in many cases. In some situations you must provide additional information in special ways, but most web services using REST rely exclusively on obtaining the needed information using the URL approach. REST can use four different HTTP 1.1 verbs (GET, POST, PUT, and DELETE) to perform tasks. Unlike SOAP, REST doesn t have to use XML to provide the response. You can find REST-based web services that output the data in comma-separated values (CSV), JavaScript Object Notation (JSON), and Really Simple Syndication (RSS). The point is that you can obtain the output you need in a form that s easy to parse within the language you need for your application. Develop Mobile Front Ends Using Mobile Application Framework A - 5

REST stands for Representational State Transfer. REST provides an alternative to using SOAPbased web services. It incorporates the concept of resources. A resource is similar to an object instance in an objectoriented programming language. Resources have data associated with them. The underlying concept is that when you send a request for a resource, the resource that is returned shows you the options for the next step. This model is very flexible, and does not require that the client know in advance what services and service calls are available. REST services rely on a stateless, client/server, cacheable communications protocol and in virtually all cases, the HTTP protocol. RESTful applications use the HTTP verbs GET, PUT, POST, and DELETE to create, update, read, and delete data. RESTful services do not impose constraints on the data format that is exchanged. Data can be formatted as XML, HTML, JavaScript Object Notation (JSON), and so on. REST services themselves are often described with a Web Application Description Language (WADL) document. Develop Mobile Front Ends Using Mobile Application Framework A - 6

Recall that REST describes resources (reference to data) in terms of URIs and that REST services nearly always use the HTTP protocol. HTTP messages include a header and a body (although the body can be empty). HTTP request messages include methods in the header to specify an action. With this combination, REST queries use HTTP verbs and URIs to specify actions on resources (or data). The table in the slide lists some typical actions, and the HTTP methods and URIs that might be used to accomplish them. Develop Mobile Front Ends Using Mobile Application Framework A - 7

REST is an architectural style, whereas SOAP is a message exchange standard. Comparing them is much like comparing apples and oranges, but in practical terms, they describe ways to access web services. As such, the table in the slide lists some features of each. These differences in features mean that in some situations, REST offers advantages, and in others, SOAP is the better choice. Develop Mobile Front Ends Using Mobile Application Framework A - 8

For web services that require robust security, transactions, and reliability, SOAP can leverage the WS* standards, and would typically be a better choice. However, because of its use of URIs and light-weight message formats such as JSON, REST can offer better performance and scalability. REST is well-suited for situations such as mobile computing, which are constrained by limited bandwidth and resources. Develop Mobile Front Ends Using Mobile Application Framework A - 9

Resources are linked together (hypermedia). Design a tree of resources with a single base resource. It is comparable to an object graph in Java or hierarchy of elements in an XML document. Resources are (usually) nouns or things. Each resource has a limited number of general-purpose operations that it may support (GET, PUT, POST, DELETE). A resource is uniquely identified by a URL. http://llocalhost:7001/myapp/resources/users A collection is also a resource. A specific resource in a collection is located with its unique value ( roy in this example: http://llocalhost:7001/myapp/resources/users/roy). Develop Mobile Front Ends Using Mobile Application Framework A - 10

Develop Mobile Front Ends Using Mobile Application Framework A - 11

Develop Mobile Front Ends Using Mobile Application Framework A - 12

Develop Mobile Front Ends Using Mobile Application Framework A - 13

Develop Mobile Front Ends Using Mobile Application Framework A - 14

Develop Mobile Front Ends Using Mobile Application Framework A - 15

Develop Mobile Front Ends Using Mobile Application Framework A - 16

Develop Mobile Front Ends Using Mobile Application Framework A - 17

Develop Mobile Front Ends Using Mobile Application Framework A - 18

Develop Mobile Front Ends Using Mobile Application Framework A - 19

Develop Mobile Front Ends Using Mobile Application Framework A - 20

Develop Mobile Front Ends Using Mobile Application Framework A - 21

Develop Mobile Front Ends Using Mobile Application Framework A - 22

Develop Mobile Front Ends Using Mobile Application Framework A - 23

Develop Mobile Front Ends Using Mobile Application Framework A - 24

Develop Mobile Front Ends Using Mobile Application Framework A - 25

Develop Mobile Front Ends Using Mobile Application Framework A - 26

Develop Mobile Front Ends Using Mobile Application Framework A - 27

Develop Mobile Front Ends Using Mobile Application Framework A - 28

Develop Mobile Front Ends Using Mobile Application Framework A - 29

Develop Mobile Front Ends Using Mobile Application Framework A - 30

Develop Mobile Front Ends Using Mobile Application Framework A - 31

Develop Mobile Front Ends Using Mobile Application Framework A - 32

Develop Mobile Front Ends Using Mobile Application Framework A - 33

Develop Mobile Front Ends Using Mobile Application Framework A - 34

A mobile back end is a logical grouping of custom APIs, users, storage collections, and other resources that serves as a cloud-based companion to one or more related mobile apps. Within a mobile back end, you organize and develop resources that will be used by your apps (which they access as REST web services). Especially if your company is new to MCS, one of the first things you ll need to do is start creating your own set of REST APIs to provide building blocks for your apps. REST is an architectural style in which data and functionality are represented as resources and are referenced using Uniform Resource Identifiers (URIs). The operations for acting on those resources are standard HTTP methods (such as GET, PUT, POST, and DELETE). API creation is divided into two parts: designing and implementing. Let s talk about designing first. If you are a mobile app developer or a service developer, you will likely be tasked with designing APIs. When you design a REST API, you express the functionality that you expect in terms of resources, along with the HTTP methods they accept, and media types for the request and response bodies. In other words, you essentially define the formats for making a request on the API and for what kind of data is returned in the response. This definition is stored in a RAML (RESTful API Modeling Language) document. You don t actually fill in the details of how the data is produced and where it comes from. Those details are worked out later in the implementation. Develop Mobile Front Ends Using Mobile Application Framework A - 35

You define a connector API by filling in info on the target resource, creating rules for the call parameters to "shape" the returned data so that it works well in a mobile context, and specifying security policies. The result is a reusable service that s exposed as a straightforward REST API that you can view in the Custom Code API Catalog. Service developers can call this connector from their custom code just like they would any other API and do not have to worry about tricky specifics like security policies and identity propagation. In addition to custom APIs, you can use MCS platform REST APIs in your apps. You can call these APIs directly from your apps and/or via the implementation code of custom APIs. You can also access many of them through MCS s SDKs for the ios, Android, Windows, Cordova, and JavaScript platforms. After you have selected the custom APIs to use in your mobile backend, you can call their REST endpoints from your mobile app code. Platform APIs are automatically available for all mobile backends, but calling them works the same way as calling custom APIs. Develop Mobile Front Ends Using Mobile Application Framework A - 36

Develop Mobile Front Ends Using Mobile Application Framework A - 37