SlideShare a Scribd company logo
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Creating RESTful APIs
With Oracle Database REST Data Services
Chris Muir
Development Tools Product Management
September, 2015
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
2
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
REST & JSON Overview
Oracle REST Data Services Overview
Demonstration
1
2
3
3
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 4
You tell me
What is REST?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
REpresentational State Transfer (REST)
5
An architectural style to defining,
publishing and consuming APIs and
services on the internet using HTTP.
- Formal definition (Zzzzzz)
Zzzzzzz…
Think of REST as a high level protocol
for exchanging data across HTTP in a
computer & developer friendly way.
- Anonymous product manager
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
REpresentational State Transfer (REST)
6
Does describe how
the internet works
But we mostly talk
about it in terms of
"web services"
That is software
"sharing data"
A contemporary
replacement for
"SOAP"
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
S
O
A
P
imple
bject
ccess
rotocol
<xmlHell/> <XML/>
REST
{ 'json':true }
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 8
Why should you care about REST web services?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 9
Why does Oracle care about REST web services?
Over 60 groups now
using it as a standard The standard is
driving faster
adoption
Common
integration
technology for
Fusion Apps
Core technology for
Oracle's cloud stack
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 10
Why should you care about REST web services?
Over 60 groups now
using it as a standard The standard is
driving faster
adoption
Common
integration
technology for
Fusion Apps
Core technology for
Oracle's cloud stack
Defacto development
solution for web/JS, mobile
etc
Huge uptake across
vendors, open source,
IT industry
Common language
for integration
solutions Available wherever
the web is
available
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
No Really?! Why should I care about REST?
11
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
No Really?! Why should I care about REST?
12
// Javascript
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
var data = xhr.responseText;
doSomething(data);
}
}
xhr.open('GET', 'https://myhost/myapp/orders/1001’, true);
xhr.send(null);
// Java
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpGet getRequest = new
HttpGet("https://myhost/myapp/orders/1001");
HttpResponse response = httpClient.execute(getRequest);
BufferedReader br = new BufferedReader(
new InputStreamReader((response.getEntity().getContent())));
// jquery
$.getJSON( "https://myhost/myapp/orders/1001", function( data ) {
doSomething(data);
});
// Php
<?php
$url = 'http://myhost/myapp/orders/1001';
$response = file_get_contents($url);
$data = json_decode($response);
var_dump($data);
?>
// Ruby
require 'json'
require 'net/http’
url = 'http://whatever/service'
response = Net::HTTP.get_response(URI.parse(url))
data = JSON.parse(response.body)
print data
// Python
import json
import requests
url = 'http://myhost/myapp/orders/1001'
response = requests.get(url)
data = response.json()
print data
// Android
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpGet getRequest = new
HttpGet("https://myhost/myapp/orders/1001");
HttpResponse response = httpClient.execute(getRequest);
BufferedReader br = new BufferedReader(
new InputStreamReader((response.getEntity().getContent())));
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 13
Exam Question 1
Describe the core
concepts of REST
web services.
Exam Question 2
Explain REST
web services
using pictures.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/index.html
Understanding REST: You are already an expert
Everyday you
use a browser
And you enter
URLs to "GET" a
"resource"
A URL is
comprised of a
remote server
A path
And a web page
"resource" of a specific
"media type"
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/index.html
It's not a human
accessing the
resource, it's
software
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/index.html
And their accessing a
remote service
It doesn't have to be
web pages, it can be
any file (media type)
It's not a human
accessing the
resource, it's
software
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/index.html
HTTP Request
HTTP Response
And they utilize the
HTTP protocol
The client makes a
HTTP request
The server responds
There can be many
request-response
cycles
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/index.html
Request
Response
HTTP Request
The HTTP request
carries a payload
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
HTTP
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
HTTP
HTTP Verb:
GET/HEAD/PUT
/POST/DELETE
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
HTTP
HTTP Verb:
GET/HEAD/PUT
/POST/DELETE
URI: Server
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
HTTP
HTTP Verb:
GET/HEAD/PUT
/POST/DELETE
URI: Server
URI: Path +
Resource
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
HTTP
HTTP Verb:
GET/HEAD/PUT
/POST/DELETE
URI: Server
URI: Path +
Resource
HTTP
Headers
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
HTTP
HTTP Verb:
GET/HEAD/PUT
/POST/DELETE
URI: Server
URI: Path +
Resource
HTTP
Headers
Accept
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
HTTP Request
GET /mobile/index.html HTTP/1.1
Host: cloud.oracle.com
User-Agent: Mozilla/5.0 Chrome/3.6
Accept: text/html
Accept-Language: en-us
Accept-Encoding: gzip,deflate
Accept-Charset: utf-8
Keep-Alive: 115
Connection: keep-alive
HTTP
HTTP Verb:
GET/HEAD/PUT
/POST/DELETE
URI: Server
URI: Path +
Resource
HTTP
Headers
Accept
No body
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/index.html
Request
Response
HTTP Response
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/data.json
Request
Response
HTTP Response
HTTP/1.1 200 OK
Date: 26 Jan 2015 00:02:25 GMT
Server: Apache/2.0.55 (Ubuntu)
Connection: Keep-Alive
Etag: "1a690fe-40df-f1645340"
<html>
<head>
<title>Oracle MCS</title>
</head>
..etc..
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/data.json
Request
Response
HTTP Response
HTTP/1.1 200 OK
Date: 26 Jan 2015 00:02:25 GMT
Server: Apache/2.0.55 (Ubuntu)
Connection: Keep-Alive
Etag: "1a690fe-40df-f1645340"
<html>
<head>
<title>Oracle MCS</title>
</head>
..etc..
Status Code
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
http://cloud.oracle.com/mobile/data.json
Request
Response
HTTP Response
HTTP/1.1 200 OK
Date: 26 Jan 2015 00:02:25 GMT
Server: Apache/2.0.55 (Ubuntu)
Connection: Keep-Alive
Etag: "1a690fe-40df-f1645340"
<html>
<head>
<title>Oracle MCS</title>
</head>
..etc.. Payload
Status Code
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Understanding REST: The four slide introduction
• Resources
• HTTP verbs
• Status codes
• Media types
http://host/path/departmentsGET
http://host/path/employeesGET
http://host/path/departments/hrGET
http://host/path/employees/101GET
http://host/path/departments/hr/employeesGET
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Understanding REST: The four slide introduction
• Resources
• HTTP verbs
• Status codes
• Media types
DELETE
PUT
HEAD
GET
POST
'Read' a resource
'Create' a resource
'Update or Create'
'Delete' a resource
'Read' resource headers
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Understanding REST: The four slide introduction
• Resources
• HTTP verbs
• Status codes
• Media types
Informational
Success
Redirection
Client Error
Server Error
4xx
3xx
5xx
1xx
2xx
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Understanding REST: The four slide introduction
• Resources
• HTTP verbs
• Status codes
• Media types
Payload type 'requested' by client
– Via HTTP Parameter "accept"
– Defines MIME types. e.g.
• application/json, application/xml, image/gif
{"departments: [
{"id":"MAN","name":"Manfacturing"},
{"id":"HR","name":"Human Resources"},
{"id":"FIN","name":"Finance"},
...etc...
]}
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Understanding JSON: The three slide introduction
JSON is a standard using
human-readable text to
transmit data objects of
attribute-value pairs. It is
typically used in machine to
machine communications
and is a contemporary
replacement for the older
XML standard.
- Wikipedia
{
"firstName":"John",
"lastName":"Smith",
"isAlive":true,
"age":25,
"address": {
"streetAddress":"21 2nd Street",
"city":"New York",
"state":"NY",
"postalCode":"10021-3100"
},
"phoneNumbers": [
{"type":"home", "number":"1234"},
{"type":"office","number":"4567"}
],
"children":[],
"spouse":null
}
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• Textual data payloads
• Human readable
• Supports validation & schemas
• "Fat free" alternative to XML
• Compact mobile friendly payloads
• JavaScript has inbuilt support
Understanding JSON: The three slide introduction
{
"firstName":"John",
"lastName":"Smith",
"isAlive":true,
"age":25,
"address": {
"streetAddress":"21 2nd Street",
"city":"New York",
"state":"NY",
"postalCode":"10021-3100"
},
"phoneNumbers": [
{"type":"home", "number":"1234"},
{"type":"office","number":"4567"}
],
"children":[],
"spouse":null
}
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
{
"firstName":"John",
"lastName":"Smith",
"isAlive":true,
"age":25,
"address": {
"streetAddress":"21 2nd Street",
"city":"New York",
"state":"NY",
"postalCode":"10021-3100"
},
"phoneNumbers": [
{"type":"home", "number":"1234"},
{"type":"office","number":"4567"}
],
"children":[],
"spouse":null
}
• Blocks delineated by ellipses
• Key-value pairs, separated by colon
– Key with quotes
– Strings & dates with quotes
– Boolean, integers, null without quotes
– Supports nesting of records
– Supports arrays/collections
– Empty array
– Null values
• Elements are comma delimited
Understanding JSON: The three slide introduction
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 38
Why?Congratulations!
You're now a
REST expert
I feel kind of… icky
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
REST & JSON Overview
Oracle REST Data Services Overview
Demonstration
1
2
3
39
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
 Provides external data access via HTTP
 For modern development frameworks
 REST is contemporary choice for
 JavaScript (web), mobile, cloud solutions
 Maps standard HTTP/S RESTful calls to SQL
 Declaratively returns results in JSON format
 Supports high number of end users
40
Oracle REST Data Services (ORDS)
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 41
Release History
Version Date Description
1.0 2010 First release as Oracle APEX Listener with with support for OWA toolkit used by APEX
1.1 2011 First release with REST support for JSON, Microdata, CSV, Pagination. Also added FOP
2.0 2012 OAuth2 support, Integrated with APEX, Multi Database, SQL Developer integration
2.0.5 2013 Added PDB support
2.0.6 2014 Renamed to Oracle REST Data Services to emphasize REST commitment
2.0.8 2014 Added REST Filtering
3.0 2015 REST AutoTable, NoSQL, DB12 JSON, Bulk loading over REST,…
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
ORDS runs in any
Java EE container:
e.g. WLS, Tomcat,
Glassfish
HTTP/S
Enhanced version
of the Oracle Java
mod_plsql Apache
module
There’s also a
standalone version
for dev purposes
It comes by
default with
Oracle DBaaS
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
HTTP/S
https://myhost/myapp/sales/orders/1001
HTTP/S & URI
Module Template
Client makes a
HTTP 'GET'
request
Context Root
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
https://myhost/myapp/sales/orders/1001
HTTP/S & URI
Module Template
ORDS maps to
"ORDERS" SQL
Context Root
Map and Bind
SELECT * FROM ORDERS
WHERE ORDERNO = :b1
HTTP/S
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
https://myhost/myapp/sales/orders/1001
HTTP/S & URI
Module Template
JDBC SQL Call
Context Root
SELECT * FROM ORDERS
WHERE ORDERNO = :b1
SQLMap and BindHTTP/S
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
https://myhost/myapp/sales/orders/1001
HTTP/S & URI
Module TemplateContext Root
SELECT * FROM ORDERS
WHERE ORDERNO = :b1
SQLMap and Bind
Result Set
DB returns
result set
HTTP/S
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
https://myhost/myapp/sales/orders/1001
HTTP/S & URI
Module TemplateContext Root
SELECT * FROM ORDERS
WHERE ORDERNO = :b1
SQLMap and Bind
Transform Result Set
{ "orderno": 1001,
"name": "Scott King",
"address": "500 Main street, Innovation CA",
"items": [ { "itemno": 404, "quantity": 7,
"status": "in process"},
{ "itemno": 303, "quantity": 32,
"status": "closed"} ] }
HTTP/S
Transform to
JSON, CSV, Excel or
Binary
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle DatabaseHTTP/S client
Oracle REST Data Services
Transform
https://myhost/myapp/sales/orders/1001
HTTP/S & URI
Module TemplateContext Root
SELECT * FROM ORDERS
WHERE ORDERNO = :b1
SQLMap and Bind
{ "orderno": 1001,
"name": "Scott King",
"address": "500 Main street, Innovation CA",
"items": [ { "itemno": 404, "quantity": 7,
"status": "in process"},
{ "itemno": 303, "quantity": 32,
"status": "closed"} ] }
JSON
HTTP/S
Response to HTTP
request
Transform Result Set
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Summary: Serving JSON results from the database
 App developers call named URI over HTTP(S) to retrieve and update data
 Oracle REST Data Services (ORDS) Developer defines URI<>SQL mapping/binding
 Utilizes the data stored in standard relational tables and columns
Oracle Database
HTTP/S
HTTP/S client
Map and Bind SQL
Transform Result SetJSON
Oracle REST Data Services
Transform
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
REST & JSON Overview
Oracle REST Data Services Overview
Demonstration
1
2
3
51
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 52
http://bit.ly/letstalkoracle001
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 53
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Installing ORDS support in the Database
• Several routes:
1. Scripts
2. APEX
3. SQL Developer
54
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 55
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 56
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 57
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 58
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 59
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 60
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 61
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 62
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 63
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 64
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 65
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 66
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 67
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 68
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 69
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 70
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 71
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 72
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 73
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Enabling ORDS support in the Database
• Several routes:
1. PL/SQL APIs
2. APEX
3. SQL Developer
74
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Enabling AutoREST Support
75
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 76
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 77
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 78
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 79
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 80
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 81
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 82
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 83
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 84
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 85
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 86
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 87
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 88
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 89
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 90
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• Add as ?q=<filter>
• Ensure to escape the filter
• Operators
– $eq,$gt,$lt,$lte,$gte,
– $ne,$instr,$asof
• Logical
– $and, $or
• Examples:
?q={ "qty": { "$gt": 20 } }
?q={"$and": [{"price": {"$ne": 1.99}},{"price": {"$notnull": ""}}]
?q={"price": [{"$ne": 1.99}},{"$notnull": ""}]
?q={"$or": [{"qty": {"$lt": 20}},{"sale": {"$eq": "TRUE"}}]
?q={$asof: {"$timestamp": ”……"}}
Generic Filtering via URI Query Support
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Configuring Modules & Templates
92
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 93
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 94
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 95
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 96
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 97
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 98
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 99
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 100
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 101
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 102
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 103
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 104
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 105
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 106
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 107
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 108
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 109
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 110
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 111
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 112
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 113
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 114
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 115
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 116
For you to
understand
Common IT
language
Unlock your
IT silos
Unlock your
data
Data is a
key asset
Drive the
business
Consider the
API world
Consider
Microservices
Overall REST should be a key technology for:
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 117
JSON inside the db
PL/JSON, APEX_JSON..
REST & JSON out of the db
Node.js DB Driver, ORDS..
….#cough #cough and just about every middleware product #hint #hint.
Don't forget the alternatives:
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Learn More With Gordon Smith
118
http://bit.ly/letstalkoracle003
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 119
Oracle REST Data Services

More Related Content

What's hot (20)

PPTX
REST Enabling your Oracle Database (2018 Update)
Jeff Smith
 
PDF
Oracle APEX概要
Nakakoshi Yuji
 
PDF
OOW15 - Getting Optimal Performance from Oracle E-Business Suite
vasuballa
 
PDF
Servlet & JSP 教學手冊第二版 - 第 1 章:簡介Web應用程式
Justin Lin
 
PPTX
Oracle REST Data Services Best Practices/ Overview
Kris Rice
 
PPTX
Oracle REST Data Services: Options for your Web Services
Jeff Smith
 
PDF
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
Edureka!
 
PDF
Basics of reflection in java
kim.mens
 
PDF
Object Oriented Programming with Laravel - Session 2
Shahrzad Peyman
 
PDF
Why Laravel?
Jonathan Goode
 
PPTX
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#1
オラクルエンジニア通信
 
PDF
2 ways to get total sum of interactive grid column oracle apex ontoor blogs
sulimankareem
 
PDF
App armor structure
Longbeo Longnhat
 
PDF
Web Development with Laravel 5
Soheil Khodayari
 
PPTX
Final terraform
Gourav Varma
 
PDF
Single page applications
Diego Cardozo
 
PDF
Oracle Enterprise Manager Cloud Control 13c for DBAs
Gokhan Atil
 
PDF
Error Management Features of PL/SQL
Steven Feuerstein
 
PDF
Oracle GoldenGate 19c を使用した 簡単データベース移行ガイド_v1.0
オラクルエンジニア通信
 
PPTX
Apache tomcat
Shashwat Shriparv
 
REST Enabling your Oracle Database (2018 Update)
Jeff Smith
 
Oracle APEX概要
Nakakoshi Yuji
 
OOW15 - Getting Optimal Performance from Oracle E-Business Suite
vasuballa
 
Servlet & JSP 教學手冊第二版 - 第 1 章:簡介Web應用程式
Justin Lin
 
Oracle REST Data Services Best Practices/ Overview
Kris Rice
 
Oracle REST Data Services: Options for your Web Services
Jeff Smith
 
Java Programming | Java Tutorial For Beginners | Java Training | Edureka
Edureka!
 
Basics of reflection in java
kim.mens
 
Object Oriented Programming with Laravel - Session 2
Shahrzad Peyman
 
Why Laravel?
Jonathan Goode
 
しばちょう先生が語る!オラクルデータベースの進化の歴史と最新技術動向#1
オラクルエンジニア通信
 
2 ways to get total sum of interactive grid column oracle apex ontoor blogs
sulimankareem
 
App armor structure
Longbeo Longnhat
 
Web Development with Laravel 5
Soheil Khodayari
 
Final terraform
Gourav Varma
 
Single page applications
Diego Cardozo
 
Oracle Enterprise Manager Cloud Control 13c for DBAs
Gokhan Atil
 
Error Management Features of PL/SQL
Steven Feuerstein
 
Oracle GoldenGate 19c を使用した 簡単データベース移行ガイド_v1.0
オラクルエンジニア通信
 
Apache tomcat
Shashwat Shriparv
 

Viewers also liked (20)

PPTX
REST Enabling Your Oracle Database
Jeff Smith
 
PDF
Creating RESTful Services with Oracle REST Data Services
Kris Rice
 
PPTX
A Designer's Intro to Oracle JET
Lauren Beatty
 
PDF
Oracle ADF Architecture TV - Development - Logging
Chris Muir
 
PPTX
Let's Talk Mobile
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
Chris Muir
 
PDF
Oracle ADF Architecture TV - Deployment - Deployment Options
Chris Muir
 
PDF
Oracle ADF Architecture TV - Development - Programming Best Practices
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Task Flow Overview
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile Integration
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
Chris Muir
 
PDF
Oracle ADF Architecture TV - Deployment - Build Options
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Designing for Internationalization
Chris Muir
 
PPTX
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Chris Muir
 
PDF
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Service Integration Architectures
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Usability and Layout Design
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Chris Muir
 
REST Enabling Your Oracle Database
Jeff Smith
 
Creating RESTful Services with Oracle REST Data Services
Kris Rice
 
A Designer's Intro to Oracle JET
Lauren Beatty
 
Oracle ADF Architecture TV - Development - Logging
Chris Muir
 
Let's Talk Mobile
Chris Muir
 
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Chris Muir
 
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
Chris Muir
 
Oracle ADF Architecture TV - Deployment - Deployment Options
Chris Muir
 
Oracle ADF Architecture TV - Development - Programming Best Practices
Chris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Chris Muir
 
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Chris Muir
 
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile Integration
Chris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
Chris Muir
 
Oracle ADF Architecture TV - Deployment - Build Options
Chris Muir
 
Oracle ADF Architecture TV - Design - Designing for Internationalization
Chris Muir
 
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Chris Muir
 
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
Chris Muir
 
Oracle ADF Architecture TV - Design - Service Integration Architectures
Chris Muir
 
Oracle ADF Architecture TV - Design - Usability and Layout Design
Chris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Chris Muir
 
Ad

Similar to Oracle REST Data Services (20)

PPTX
Boost Your Content Strategy for REST APIs with Gururaj BS
Information Development World
 
PPT
RESTful services
gouthamrv
 
PDF
Automating Cloud Operations - Everything you wanted to know about cURL and RE...
Revelation Technologies
 
PDF
Real-World RESTful Service Development Problems and Solutions
Masoud Kalali
 
PDF
REST API Doc Best Practices
Marta Rauch
 
PDF
Resting with OroCRM Webinar
Oro Inc.
 
PPTX
Http and REST APIs.
Rahul Tanwani
 
PPTX
RESTful web services using java and spring
Muhammad Junaid Ansari
 
PDF
Boost Your Content Strategy for REST APIs
Marta Rauch
 
PPTX
Oracle Office Hours - Exposing REST services with APEX and ORDS
Doug Gault
 
PPTX
Web- and Mobile-Oriented Architectures with Oracle Fusion Middleware (OOW 2014)
Lucas Jellema
 
PDF
Automating Cloud Operations: Everything You Wanted to Know about cURL and REST
Revelation Technologies
 
PPTX
Web Service
Ashwani kumar
 
PDF
Restful web services by Sreeni Inturi
Sreeni I
 
PDF
A2 from soap to rest
Arnaud Bouchez
 
PPTX
Expose your data as an api is with oracle rest data services -spoug Madrid
Vinay Kumar
 
PDF
Enterprise REST
Ganesh Prasad
 
PDF
Getting Started with API Management
Revelation Technologies
 
PPT
RESTful SOA - 中科院暑期讲座
Li Yi
 
PPTX
RESTful Web Services
adeppathondur
 
Boost Your Content Strategy for REST APIs with Gururaj BS
Information Development World
 
RESTful services
gouthamrv
 
Automating Cloud Operations - Everything you wanted to know about cURL and RE...
Revelation Technologies
 
Real-World RESTful Service Development Problems and Solutions
Masoud Kalali
 
REST API Doc Best Practices
Marta Rauch
 
Resting with OroCRM Webinar
Oro Inc.
 
Http and REST APIs.
Rahul Tanwani
 
RESTful web services using java and spring
Muhammad Junaid Ansari
 
Boost Your Content Strategy for REST APIs
Marta Rauch
 
Oracle Office Hours - Exposing REST services with APEX and ORDS
Doug Gault
 
Web- and Mobile-Oriented Architectures with Oracle Fusion Middleware (OOW 2014)
Lucas Jellema
 
Automating Cloud Operations: Everything You Wanted to Know about cURL and REST
Revelation Technologies
 
Web Service
Ashwani kumar
 
Restful web services by Sreeni Inturi
Sreeni I
 
A2 from soap to rest
Arnaud Bouchez
 
Expose your data as an api is with oracle rest data services -spoug Madrid
Vinay Kumar
 
Enterprise REST
Ganesh Prasad
 
Getting Started with API Management
Revelation Technologies
 
RESTful SOA - 中科院暑期讲座
Li Yi
 
RESTful Web Services
adeppathondur
 
Ad

More from Chris Muir (14)

PDF
Oracle ADF Architecture TV - Deployment - System Topologies
Chris Muir
 
PDF
Oracle ADF Architecture TV - Development - Version Control
Chris Muir
 
PDF
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Chris Muir
 
PDF
Oracle ADF Architecture TV - Development - Performance & Tuning
Chris Muir
 
PDF
Oracle ADF Architecture TV - Development - Error Handling
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Application Customization and MDS
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Designing for Security
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Architecting for PLSQL Integration
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - ADF Service Architectures
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
Chris Muir
 
PDF
Oracle ADF Architecture TV - Design - Project Dependencies
Chris Muir
 
Oracle ADF Architecture TV - Deployment - System Topologies
Chris Muir
 
Oracle ADF Architecture TV - Development - Version Control
Chris Muir
 
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Chris Muir
 
Oracle ADF Architecture TV - Development - Performance & Tuning
Chris Muir
 
Oracle ADF Architecture TV - Development - Error Handling
Chris Muir
 
Oracle ADF Architecture TV - Design - Application Customization and MDS
Chris Muir
 
Oracle ADF Architecture TV - Design - Designing for Security
Chris Muir
 
Oracle ADF Architecture TV - Design - Architecting for PLSQL Integration
Chris Muir
 
Oracle ADF Architecture TV - Design - ADF Service Architectures
Chris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Chris Muir
 
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
Chris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Chris Muir
 
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
Chris Muir
 
Oracle ADF Architecture TV - Design - Project Dependencies
Chris Muir
 

Recently uploaded (20)

PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 

Oracle REST Data Services

  • 1. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Creating RESTful APIs With Oracle Database REST Data Services Chris Muir Development Tools Product Management September, 2015
  • 2. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 2
  • 3. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Program Agenda REST & JSON Overview Oracle REST Data Services Overview Demonstration 1 2 3 3
  • 4. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 4 You tell me What is REST?
  • 5. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | REpresentational State Transfer (REST) 5 An architectural style to defining, publishing and consuming APIs and services on the internet using HTTP. - Formal definition (Zzzzzz) Zzzzzzz… Think of REST as a high level protocol for exchanging data across HTTP in a computer & developer friendly way. - Anonymous product manager
  • 6. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | REpresentational State Transfer (REST) 6 Does describe how the internet works But we mostly talk about it in terms of "web services" That is software "sharing data" A contemporary replacement for "SOAP"
  • 7. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | S O A P imple bject ccess rotocol <xmlHell/> <XML/> REST { 'json':true }
  • 8. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 8 Why should you care about REST web services?
  • 9. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 9 Why does Oracle care about REST web services? Over 60 groups now using it as a standard The standard is driving faster adoption Common integration technology for Fusion Apps Core technology for Oracle's cloud stack
  • 10. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 10 Why should you care about REST web services? Over 60 groups now using it as a standard The standard is driving faster adoption Common integration technology for Fusion Apps Core technology for Oracle's cloud stack Defacto development solution for web/JS, mobile etc Huge uptake across vendors, open source, IT industry Common language for integration solutions Available wherever the web is available
  • 11. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | No Really?! Why should I care about REST? 11
  • 12. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | No Really?! Why should I care about REST? 12 // Javascript var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { if (xhr.readyState == 4) { var data = xhr.responseText; doSomething(data); } } xhr.open('GET', 'https://myhost/myapp/orders/1001’, true); xhr.send(null); // Java DefaultHttpClient httpClient = new DefaultHttpClient(); HttpGet getRequest = new HttpGet("https://myhost/myapp/orders/1001"); HttpResponse response = httpClient.execute(getRequest); BufferedReader br = new BufferedReader( new InputStreamReader((response.getEntity().getContent()))); // jquery $.getJSON( "https://myhost/myapp/orders/1001", function( data ) { doSomething(data); }); // Php <?php $url = 'http://myhost/myapp/orders/1001'; $response = file_get_contents($url); $data = json_decode($response); var_dump($data); ?> // Ruby require 'json' require 'net/http’ url = 'http://whatever/service' response = Net::HTTP.get_response(URI.parse(url)) data = JSON.parse(response.body) print data // Python import json import requests url = 'http://myhost/myapp/orders/1001' response = requests.get(url) data = response.json() print data // Android DefaultHttpClient httpClient = new DefaultHttpClient(); HttpGet getRequest = new HttpGet("https://myhost/myapp/orders/1001"); HttpResponse response = httpClient.execute(getRequest); BufferedReader br = new BufferedReader( new InputStreamReader((response.getEntity().getContent())));
  • 13. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 13 Exam Question 1 Describe the core concepts of REST web services. Exam Question 2 Explain REST web services using pictures.
  • 14. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/index.html Understanding REST: You are already an expert Everyday you use a browser And you enter URLs to "GET" a "resource" A URL is comprised of a remote server A path And a web page "resource" of a specific "media type"
  • 15. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/index.html It's not a human accessing the resource, it's software
  • 16. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/index.html And their accessing a remote service It doesn't have to be web pages, it can be any file (media type) It's not a human accessing the resource, it's software
  • 17. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/index.html HTTP Request HTTP Response And they utilize the HTTP protocol The client makes a HTTP request The server responds There can be many request-response cycles
  • 18. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/index.html Request Response HTTP Request The HTTP request carries a payload
  • 19. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive
  • 20. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive HTTP
  • 21. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive HTTP HTTP Verb: GET/HEAD/PUT /POST/DELETE
  • 22. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive HTTP HTTP Verb: GET/HEAD/PUT /POST/DELETE URI: Server
  • 23. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive HTTP HTTP Verb: GET/HEAD/PUT /POST/DELETE URI: Server URI: Path + Resource
  • 24. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive HTTP HTTP Verb: GET/HEAD/PUT /POST/DELETE URI: Server URI: Path + Resource HTTP Headers
  • 25. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive HTTP HTTP Verb: GET/HEAD/PUT /POST/DELETE URI: Server URI: Path + Resource HTTP Headers Accept
  • 26. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | HTTP Request GET /mobile/index.html HTTP/1.1 Host: cloud.oracle.com User-Agent: Mozilla/5.0 Chrome/3.6 Accept: text/html Accept-Language: en-us Accept-Encoding: gzip,deflate Accept-Charset: utf-8 Keep-Alive: 115 Connection: keep-alive HTTP HTTP Verb: GET/HEAD/PUT /POST/DELETE URI: Server URI: Path + Resource HTTP Headers Accept No body
  • 27. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/index.html Request Response HTTP Response
  • 28. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/data.json Request Response HTTP Response HTTP/1.1 200 OK Date: 26 Jan 2015 00:02:25 GMT Server: Apache/2.0.55 (Ubuntu) Connection: Keep-Alive Etag: "1a690fe-40df-f1645340" <html> <head> <title>Oracle MCS</title> </head> ..etc..
  • 29. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/data.json Request Response HTTP Response HTTP/1.1 200 OK Date: 26 Jan 2015 00:02:25 GMT Server: Apache/2.0.55 (Ubuntu) Connection: Keep-Alive Etag: "1a690fe-40df-f1645340" <html> <head> <title>Oracle MCS</title> </head> ..etc.. Status Code
  • 30. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | http://cloud.oracle.com/mobile/data.json Request Response HTTP Response HTTP/1.1 200 OK Date: 26 Jan 2015 00:02:25 GMT Server: Apache/2.0.55 (Ubuntu) Connection: Keep-Alive Etag: "1a690fe-40df-f1645340" <html> <head> <title>Oracle MCS</title> </head> ..etc.. Payload Status Code
  • 31. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Understanding REST: The four slide introduction • Resources • HTTP verbs • Status codes • Media types http://host/path/departmentsGET http://host/path/employeesGET http://host/path/departments/hrGET http://host/path/employees/101GET http://host/path/departments/hr/employeesGET
  • 32. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Understanding REST: The four slide introduction • Resources • HTTP verbs • Status codes • Media types DELETE PUT HEAD GET POST 'Read' a resource 'Create' a resource 'Update or Create' 'Delete' a resource 'Read' resource headers
  • 33. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Understanding REST: The four slide introduction • Resources • HTTP verbs • Status codes • Media types Informational Success Redirection Client Error Server Error 4xx 3xx 5xx 1xx 2xx
  • 34. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Understanding REST: The four slide introduction • Resources • HTTP verbs • Status codes • Media types Payload type 'requested' by client – Via HTTP Parameter "accept" – Defines MIME types. e.g. • application/json, application/xml, image/gif {"departments: [ {"id":"MAN","name":"Manfacturing"}, {"id":"HR","name":"Human Resources"}, {"id":"FIN","name":"Finance"}, ...etc... ]}
  • 35. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Understanding JSON: The three slide introduction JSON is a standard using human-readable text to transmit data objects of attribute-value pairs. It is typically used in machine to machine communications and is a contemporary replacement for the older XML standard. - Wikipedia { "firstName":"John", "lastName":"Smith", "isAlive":true, "age":25, "address": { "streetAddress":"21 2nd Street", "city":"New York", "state":"NY", "postalCode":"10021-3100" }, "phoneNumbers": [ {"type":"home", "number":"1234"}, {"type":"office","number":"4567"} ], "children":[], "spouse":null }
  • 36. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • Textual data payloads • Human readable • Supports validation & schemas • "Fat free" alternative to XML • Compact mobile friendly payloads • JavaScript has inbuilt support Understanding JSON: The three slide introduction { "firstName":"John", "lastName":"Smith", "isAlive":true, "age":25, "address": { "streetAddress":"21 2nd Street", "city":"New York", "state":"NY", "postalCode":"10021-3100" }, "phoneNumbers": [ {"type":"home", "number":"1234"}, {"type":"office","number":"4567"} ], "children":[], "spouse":null }
  • 37. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | { "firstName":"John", "lastName":"Smith", "isAlive":true, "age":25, "address": { "streetAddress":"21 2nd Street", "city":"New York", "state":"NY", "postalCode":"10021-3100" }, "phoneNumbers": [ {"type":"home", "number":"1234"}, {"type":"office","number":"4567"} ], "children":[], "spouse":null } • Blocks delineated by ellipses • Key-value pairs, separated by colon – Key with quotes – Strings & dates with quotes – Boolean, integers, null without quotes – Supports nesting of records – Supports arrays/collections – Empty array – Null values • Elements are comma delimited Understanding JSON: The three slide introduction
  • 38. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 38 Why?Congratulations! You're now a REST expert I feel kind of… icky
  • 39. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Program Agenda REST & JSON Overview Oracle REST Data Services Overview Demonstration 1 2 3 39
  • 40. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |  Provides external data access via HTTP  For modern development frameworks  REST is contemporary choice for  JavaScript (web), mobile, cloud solutions  Maps standard HTTP/S RESTful calls to SQL  Declaratively returns results in JSON format  Supports high number of end users 40 Oracle REST Data Services (ORDS)
  • 41. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 41 Release History Version Date Description 1.0 2010 First release as Oracle APEX Listener with with support for OWA toolkit used by APEX 1.1 2011 First release with REST support for JSON, Microdata, CSV, Pagination. Also added FOP 2.0 2012 OAuth2 support, Integrated with APEX, Multi Database, SQL Developer integration 2.0.5 2013 Added PDB support 2.0.6 2014 Renamed to Oracle REST Data Services to emphasize REST commitment 2.0.8 2014 Added REST Filtering 3.0 2015 REST AutoTable, NoSQL, DB12 JSON, Bulk loading over REST,…
  • 42. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform
  • 43. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform ORDS runs in any Java EE container: e.g. WLS, Tomcat, Glassfish HTTP/S Enhanced version of the Oracle Java mod_plsql Apache module There’s also a standalone version for dev purposes It comes by default with Oracle DBaaS
  • 44. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform HTTP/S https://myhost/myapp/sales/orders/1001 HTTP/S & URI Module Template Client makes a HTTP 'GET' request Context Root
  • 45. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform https://myhost/myapp/sales/orders/1001 HTTP/S & URI Module Template ORDS maps to "ORDERS" SQL Context Root Map and Bind SELECT * FROM ORDERS WHERE ORDERNO = :b1 HTTP/S
  • 46. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform https://myhost/myapp/sales/orders/1001 HTTP/S & URI Module Template JDBC SQL Call Context Root SELECT * FROM ORDERS WHERE ORDERNO = :b1 SQLMap and BindHTTP/S
  • 47. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform https://myhost/myapp/sales/orders/1001 HTTP/S & URI Module TemplateContext Root SELECT * FROM ORDERS WHERE ORDERNO = :b1 SQLMap and Bind Result Set DB returns result set HTTP/S
  • 48. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform https://myhost/myapp/sales/orders/1001 HTTP/S & URI Module TemplateContext Root SELECT * FROM ORDERS WHERE ORDERNO = :b1 SQLMap and Bind Transform Result Set { "orderno": 1001, "name": "Scott King", "address": "500 Main street, Innovation CA", "items": [ { "itemno": 404, "quantity": 7, "status": "in process"}, { "itemno": 303, "quantity": 32, "status": "closed"} ] } HTTP/S Transform to JSON, CSV, Excel or Binary
  • 49. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle DatabaseHTTP/S client Oracle REST Data Services Transform https://myhost/myapp/sales/orders/1001 HTTP/S & URI Module TemplateContext Root SELECT * FROM ORDERS WHERE ORDERNO = :b1 SQLMap and Bind { "orderno": 1001, "name": "Scott King", "address": "500 Main street, Innovation CA", "items": [ { "itemno": 404, "quantity": 7, "status": "in process"}, { "itemno": 303, "quantity": 32, "status": "closed"} ] } JSON HTTP/S Response to HTTP request Transform Result Set
  • 50. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Summary: Serving JSON results from the database  App developers call named URI over HTTP(S) to retrieve and update data  Oracle REST Data Services (ORDS) Developer defines URI<>SQL mapping/binding  Utilizes the data stored in standard relational tables and columns Oracle Database HTTP/S HTTP/S client Map and Bind SQL Transform Result SetJSON Oracle REST Data Services Transform
  • 51. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Program Agenda REST & JSON Overview Oracle REST Data Services Overview Demonstration 1 2 3 51
  • 52. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 52 http://bit.ly/letstalkoracle001
  • 53. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 53
  • 54. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Installing ORDS support in the Database • Several routes: 1. Scripts 2. APEX 3. SQL Developer 54
  • 55. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 55
  • 56. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 56
  • 57. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 57
  • 58. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 58
  • 59. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 59
  • 60. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 60
  • 61. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 61
  • 62. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 62
  • 63. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 63
  • 64. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 64
  • 65. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 65
  • 66. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 66
  • 67. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 67
  • 68. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 68
  • 69. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 69
  • 70. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 70
  • 71. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 71
  • 72. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 72
  • 73. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 73
  • 74. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Enabling ORDS support in the Database • Several routes: 1. PL/SQL APIs 2. APEX 3. SQL Developer 74
  • 75. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Enabling AutoREST Support 75
  • 76. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 76
  • 77. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 77
  • 78. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 78
  • 79. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 79
  • 80. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 80
  • 81. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 81
  • 82. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 82
  • 83. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 83
  • 84. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 84
  • 85. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 85
  • 86. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 86
  • 87. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 87
  • 88. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 88
  • 89. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 89
  • 90. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 90
  • 91. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • Add as ?q=<filter> • Ensure to escape the filter • Operators – $eq,$gt,$lt,$lte,$gte, – $ne,$instr,$asof • Logical – $and, $or • Examples: ?q={ "qty": { "$gt": 20 } } ?q={"$and": [{"price": {"$ne": 1.99}},{"price": {"$notnull": ""}}] ?q={"price": [{"$ne": 1.99}},{"$notnull": ""}] ?q={"$or": [{"qty": {"$lt": 20}},{"sale": {"$eq": "TRUE"}}] ?q={$asof: {"$timestamp": ”……"}} Generic Filtering via URI Query Support
  • 92. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Configuring Modules & Templates 92
  • 93. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 93
  • 94. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 94
  • 95. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 95
  • 96. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 96
  • 97. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 97
  • 98. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 98
  • 99. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 99
  • 100. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 100
  • 101. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 101
  • 102. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 102
  • 103. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 103
  • 104. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 104
  • 105. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 105
  • 106. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 106
  • 107. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 107
  • 108. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 108
  • 109. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 109
  • 110. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 110
  • 111. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 111
  • 112. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 112
  • 113. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 113
  • 114. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 114
  • 115. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 115
  • 116. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 116 For you to understand Common IT language Unlock your IT silos Unlock your data Data is a key asset Drive the business Consider the API world Consider Microservices Overall REST should be a key technology for:
  • 117. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 117 JSON inside the db PL/JSON, APEX_JSON.. REST & JSON out of the db Node.js DB Driver, ORDS.. ….#cough #cough and just about every middleware product #hint #hint. Don't forget the alternatives:
  • 118. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Learn More With Gordon Smith 118 http://bit.ly/letstalkoracle003
  • 119. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 119

Editor's Notes

  • #3: This is a Safe Harbor Front slide, one of two Safe Harbor Statement slides included in this template. One of the Safe Harbor slides must be used if your presentation covers material affected by Oracle’s Revenue Recognition Policy To learn more about this policy, e-mail: [email protected] For internal communication, Safe Harbor Statements are not required. However, there is an applicable disclaimer (Exhibit E) that should be used, found in the Oracle Revenue Recognition Policy for Future Product Communications. Copy and paste this link into a web browser, to find out more information.   http://my.oracle.com/site/fin/gfo/GlobalProcesses/cnt452504.pdf For all external communications such as press release, roadmaps, PowerPoint presentations, Safe Harbor Statements are required. You can refer to the link mentioned above to find out additional information/disclaimers required depending on your audience.