SlideShare a Scribd company logo
1 of 120
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
Creating RESTful APIs With Oracle Database REST Data Services

More Related Content

What's hot

ELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learnedELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learnedTin Le
 
Rest API with Swagger and NodeJS
Rest API with Swagger and NodeJSRest API with Swagger and NodeJS
Rest API with Swagger and NodeJSLuigi Saetta
 
Best Practices in Web Service Design
Best Practices in Web Service DesignBest Practices in Web Service Design
Best Practices in Web Service DesignLorna Mitchell
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaEdureka!
 
Understanding REST
Understanding RESTUnderstanding REST
Understanding RESTNitin Pande
 
카카오에서의 Trove 운영사례
카카오에서의 Trove 운영사례카카오에서의 Trove 운영사례
카카오에서의 Trove 운영사례Won-Chon Jung
 
Integrating Alfresco with MS Dynamics
Integrating Alfresco with MS DynamicsIntegrating Alfresco with MS Dynamics
Integrating Alfresco with MS DynamicsZia Consulting
 
Building a REST Service in minutes with Spring Boot
Building a REST Service in minutes with Spring BootBuilding a REST Service in minutes with Spring Boot
Building a REST Service in minutes with Spring BootOmri Spector
 
Rest api standards and best practices
Rest api standards and best practicesRest api standards and best practices
Rest api standards and best practicesAnkita Mahajan
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014JWORKS powered by Ordina
 
Projects In Laravel : Learn Laravel Building 10 Projects
Projects In Laravel : Learn Laravel Building 10 ProjectsProjects In Laravel : Learn Laravel Building 10 Projects
Projects In Laravel : Learn Laravel Building 10 ProjectsSam Dias
 
How to Build a High Performance Application with PHP and Swoole?
How to Build a High Performance Application with PHP and Swoole?How to Build a High Performance Application with PHP and Swoole?
How to Build a High Performance Application with PHP and Swoole?Albert Chen
 
.NET Core, ASP.NET Core Course, Session 6
.NET Core, ASP.NET Core Course, Session 6.NET Core, ASP.NET Core Course, Session 6
.NET Core, ASP.NET Core Course, Session 6aminmesbahi
 

What's hot (20)

ELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learnedELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learned
 
Maven
MavenMaven
Maven
 
Rest API
Rest APIRest API
Rest API
 
Rest API
Rest APIRest API
Rest API
 
Rest API with Swagger and NodeJS
Rest API with Swagger and NodeJSRest API with Swagger and NodeJS
Rest API with Swagger and NodeJS
 
Best Practices in Web Service Design
Best Practices in Web Service DesignBest Practices in Web Service Design
Best Practices in Web Service Design
 
What is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | EdurekaWhat is REST API? REST API Concepts and Examples | Edureka
What is REST API? REST API Concepts and Examples | Edureka
 
Understanding REST
Understanding RESTUnderstanding REST
Understanding REST
 
카카오에서의 Trove 운영사례
카카오에서의 Trove 운영사례카카오에서의 Trove 운영사례
카카오에서의 Trove 운영사례
 
Integrating Alfresco with MS Dynamics
Integrating Alfresco with MS DynamicsIntegrating Alfresco with MS Dynamics
Integrating Alfresco with MS Dynamics
 
Building a REST Service in minutes with Spring Boot
Building a REST Service in minutes with Spring BootBuilding a REST Service in minutes with Spring Boot
Building a REST Service in minutes with Spring Boot
 
Rest api standards and best practices
Rest api standards and best practicesRest api standards and best practices
Rest api standards and best practices
 
Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014Documenting your REST API with Swagger - JOIN 2014
Documenting your REST API with Swagger - JOIN 2014
 
Angular 9
Angular 9 Angular 9
Angular 9
 
Projects In Laravel : Learn Laravel Building 10 Projects
Projects In Laravel : Learn Laravel Building 10 ProjectsProjects In Laravel : Learn Laravel Building 10 Projects
Projects In Laravel : Learn Laravel Building 10 Projects
 
An Introduction To REST API
An Introduction To REST APIAn Introduction To REST API
An Introduction To REST API
 
Angular
AngularAngular
Angular
 
How to Build a High Performance Application with PHP and Swoole?
How to Build a High Performance Application with PHP and Swoole?How to Build a High Performance Application with PHP and Swoole?
How to Build a High Performance Application with PHP and Swoole?
 
Angular
AngularAngular
Angular
 
.NET Core, ASP.NET Core Course, Session 6
.NET Core, ASP.NET Core Course, Session 6.NET Core, ASP.NET Core Course, Session 6
.NET Core, ASP.NET Core Course, Session 6
 

Viewers also liked

Creating RESTful Services with Oracle REST Data Services
Creating RESTful Services with Oracle REST Data ServicesCreating RESTful Services with Oracle REST Data Services
Creating RESTful Services with Oracle REST Data ServicesKris Rice
 
A Designer's Intro to Oracle JET
A Designer's Intro to Oracle JETA Designer's Intro to Oracle JET
A Designer's Intro to Oracle JETLauren Beatty
 
Oracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - LoggingOracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - LoggingChris Muir
 
Let's Talk Mobile
Let's Talk MobileLet's Talk Mobile
Let's Talk MobileChris Muir
 
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure DecisionsOracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure DecisionsChris Muir
 
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable ArtifactsOracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable ArtifactsChris Muir
 
Oracle ADF Architecture TV - Deployment - Deployment Options
Oracle ADF Architecture TV - Deployment - Deployment OptionsOracle ADF Architecture TV - Deployment - Deployment Options
Oracle ADF Architecture TV - Deployment - Deployment OptionsChris Muir
 
Oracle ADF Architecture TV - Development - Programming Best Practices
Oracle ADF Architecture TV - Development - Programming Best PracticesOracle ADF Architecture TV - Development - Programming Best Practices
Oracle ADF Architecture TV - Development - Programming Best PracticesChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewOracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewChris Muir
 
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow ConceptsOracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow ConceptsChris Muir
 
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile Integration
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile IntegrationOracle ADF Architecture TV - Design - Architecting for ADF Mobile Integration
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile IntegrationChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation OptionsOracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation OptionsChris Muir
 
Oracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build OptionsOracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build OptionsChris Muir
 
Oracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for InternationalizationOracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for InternationalizationChris Muir
 
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with OracleMobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with OracleChris Muir
 
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...Chris Muir
 
Oracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesOracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesChris Muir
 
Oracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignOracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsOracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsChris Muir
 
Oracle ADF Architecture TV - Deployment - System Topologies
Oracle ADF Architecture TV - Deployment - System TopologiesOracle ADF Architecture TV - Deployment - System Topologies
Oracle ADF Architecture TV - Deployment - System TopologiesChris Muir
 

Viewers also liked (20)

Creating RESTful Services with Oracle REST Data Services
Creating RESTful Services with Oracle REST Data ServicesCreating RESTful Services with Oracle REST Data Services
Creating RESTful Services with Oracle REST Data Services
 
A Designer's Intro to Oracle JET
A Designer's Intro to Oracle JETA Designer's Intro to Oracle JET
A Designer's Intro to Oracle JET
 
Oracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - LoggingOracle ADF Architecture TV - Development - Logging
Oracle ADF Architecture TV - Development - Logging
 
Let's Talk Mobile
Let's Talk MobileLet's Talk Mobile
Let's Talk Mobile
 
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure DecisionsOracle ADF Architecture TV - Design - MDS Infrastructure Decisions
Oracle ADF Architecture TV - Design - MDS Infrastructure Decisions
 
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable ArtifactsOracle ADF Architecture TV - Design - ADF Reusable Artifacts
Oracle ADF Architecture TV - Design - ADF Reusable Artifacts
 
Oracle ADF Architecture TV - Deployment - Deployment Options
Oracle ADF Architecture TV - Deployment - Deployment OptionsOracle ADF Architecture TV - Deployment - Deployment Options
Oracle ADF Architecture TV - Deployment - Deployment Options
 
Oracle ADF Architecture TV - Development - Programming Best Practices
Oracle ADF Architecture TV - Development - Programming Best PracticesOracle ADF Architecture TV - Development - Programming Best Practices
Oracle ADF Architecture TV - Development - Programming Best Practices
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewOracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow Overview
 
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow ConceptsOracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
Oracle ADF Architecture TV - Design - Advanced ADF Task Flow Concepts
 
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile Integration
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile IntegrationOracle ADF Architecture TV - Design - Architecting for ADF Mobile Integration
Oracle ADF Architecture TV - Design - Architecting for ADF Mobile Integration
 
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation OptionsOracle ADF Architecture TV - Design - Task Flow Navigation Options
Oracle ADF Architecture TV - Design - Task Flow Navigation Options
 
Oracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build OptionsOracle ADF Architecture TV - Deployment - Build Options
Oracle ADF Architecture TV - Deployment - Build Options
 
Oracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for InternationalizationOracle ADF Architecture TV - Design - Designing for Internationalization
Oracle ADF Architecture TV - Design - Designing for Internationalization
 
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with OracleMobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
Mobile Mumbo Jumbo - Demystifying the World of Enterprise Mobility with Oracle
 
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...Oracle ADF Architecture TV -  Planning & Getting Started - Team, Skills and D...
Oracle ADF Architecture TV - Planning & Getting Started - Team, Skills and D...
 
Oracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration ArchitecturesOracle ADF Architecture TV - Design - Service Integration Architectures
Oracle ADF Architecture TV - Design - Service Integration Architectures
 
Oracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout DesignOracle ADF Architecture TV - Design - Usability and Layout Design
Oracle ADF Architecture TV - Design - Usability and Layout Design
 
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction OptionsOracle ADF Architecture TV - Design - Task Flow Transaction Options
Oracle ADF Architecture TV - Design - Task Flow Transaction Options
 
Oracle ADF Architecture TV - Deployment - System Topologies
Oracle ADF Architecture TV - Deployment - System TopologiesOracle ADF Architecture TV - Deployment - System Topologies
Oracle ADF Architecture TV - Deployment - System Topologies
 

Similar to Creating RESTful APIs With Oracle Database REST Data Services

REST API Doc Best Practices
REST API Doc Best PracticesREST API Doc Best Practices
REST API Doc Best PracticesMarta Rauch
 
Boost Your Content Strategy for REST APIs
Boost Your Content Strategy for REST APIsBoost Your Content Strategy for REST APIs
Boost Your Content Strategy for REST APIsMarta Rauch
 
Modern App Development with Oracle Cloud
Modern App Development with Oracle CloudModern App Development with Oracle Cloud
Modern App Development with Oracle CloudJuan Carlos Ruiz Rico
 
HTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to YouHTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to YouDavid Delabassee
 
WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015Pavel Bucek
 
Leverage integration cloud_service_for_ebs_
Leverage integration cloud_service_for_ebs_Leverage integration cloud_service_for_ebs_
Leverage integration cloud_service_for_ebs_aioughydchapter
 
Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015Edward Burns
 
10 Building Blocks for Enterprise JavaScript
10 Building Blocks for Enterprise JavaScript10 Building Blocks for Enterprise JavaScript
10 Building Blocks for Enterprise JavaScriptGeertjan Wielenga
 
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015Edward Burns
 
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan WielengaCoding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan WielengaJAXLondon_Conference
 
WebRTC with Java
WebRTC with JavaWebRTC with Java
WebRTC with Javaamithap07
 
Oracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsOracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsMaria Colgan
 
2015 UJUG, Servlet 4.0 portion
2015 UJUG, Servlet 4.0 portion2015 UJUG, Servlet 4.0 portion
2015 UJUG, Servlet 4.0 portionmnriem
 
OOW15 - Oracle E-Business Suite Integration Best Practices
OOW15 - Oracle E-Business Suite Integration Best PracticesOOW15 - Oracle E-Business Suite Integration Best Practices
OOW15 - Oracle E-Business Suite Integration Best Practicesvasuballa
 
Beneficios de la coexistencia de ambientes híbridos utilizando SOA
Beneficios de la coexistencia de ambientes híbridos utilizando SOABeneficios de la coexistencia de ambientes híbridos utilizando SOA
Beneficios de la coexistencia de ambientes híbridos utilizando SOASoftware Guru
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018Jeff Smith
 

Similar to Creating RESTful APIs With Oracle Database REST Data Services (20)

REST API Doc Best Practices
REST API Doc Best PracticesREST API Doc Best Practices
REST API Doc Best Practices
 
Boost Your Content Strategy for REST APIs
Boost Your Content Strategy for REST APIsBoost Your Content Strategy for REST APIs
Boost Your Content Strategy for REST APIs
 
Modern App Development with Oracle Cloud
Modern App Development with Oracle CloudModern App Development with Oracle Cloud
Modern App Development with Oracle Cloud
 
HTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to YouHTTP/2 Comes to Java - What Servlet 4.0 Means to You
HTTP/2 Comes to Java - What Servlet 4.0 Means to You
 
WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015
 
Leverage integration cloud_service_for_ebs_
Leverage integration cloud_service_for_ebs_Leverage integration cloud_service_for_ebs_
Leverage integration cloud_service_for_ebs_
 
Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015
 
10 Building Blocks for Enterprise JavaScript
10 Building Blocks for Enterprise JavaScript10 Building Blocks for Enterprise JavaScript
10 Building Blocks for Enterprise JavaScript
 
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015
 
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan WielengaCoding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
Coding for desktop and mobile with HTML5 and Java EE 7 - Geertjan Wielenga
 
WebRTC with Java
WebRTC with JavaWebRTC with Java
WebRTC with Java
 
Imworld.ro
Imworld.roImworld.ro
Imworld.ro
 
Session at Oredev 2016.
Session at Oredev 2016.Session at Oredev 2016.
Session at Oredev 2016.
 
Slovenian Oracle User Group
Slovenian Oracle User GroupSlovenian Oracle User Group
Slovenian Oracle User Group
 
HTTP/2 Comes to Java
HTTP/2 Comes to JavaHTTP/2 Comes to Java
HTTP/2 Comes to Java
 
Oracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsOracle database 12c_and_DevOps
Oracle database 12c_and_DevOps
 
2015 UJUG, Servlet 4.0 portion
2015 UJUG, Servlet 4.0 portion2015 UJUG, Servlet 4.0 portion
2015 UJUG, Servlet 4.0 portion
 
OOW15 - Oracle E-Business Suite Integration Best Practices
OOW15 - Oracle E-Business Suite Integration Best PracticesOOW15 - Oracle E-Business Suite Integration Best Practices
OOW15 - Oracle E-Business Suite Integration Best Practices
 
Beneficios de la coexistencia de ambientes híbridos utilizando SOA
Beneficios de la coexistencia de ambientes híbridos utilizando SOABeneficios de la coexistencia de ambientes híbridos utilizando SOA
Beneficios de la coexistencia de ambientes híbridos utilizando SOA
 
What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018What's New in Oracle SQL Developer for 2018
What's New in Oracle SQL Developer for 2018
 

More from Chris Muir

Oracle ADF Architecture TV - Development - Version Control
Oracle ADF Architecture TV - Development - Version ControlOracle ADF Architecture TV - Development - Version Control
Oracle ADF Architecture TV - Development - Version ControlChris Muir
 
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project LayoutsOracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project LayoutsChris Muir
 
Oracle ADF Architecture TV - Development - Performance & Tuning
Oracle ADF Architecture TV - Development - Performance & TuningOracle ADF Architecture TV - Development - Performance & Tuning
Oracle ADF Architecture TV - Development - Performance & TuningChris Muir
 
Oracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error HandlingOracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error HandlingChris Muir
 
Oracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSOracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSChris Muir
 
Oracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for SecurityOracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for SecurityChris Muir
 
Oracle ADF Architecture TV - Design - Architecting for PLSQL Integration
Oracle ADF Architecture TV - Design - Architecting for PLSQL IntegrationOracle ADF Architecture TV - Design - Architecting for PLSQL Integration
Oracle ADF Architecture TV - Design - Architecting for PLSQL IntegrationChris Muir
 
Oracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesOracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternOracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternChris Muir
 
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module DesignOracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module DesignChris Muir
 
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope OptionsOracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope OptionsChris Muir
 
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural PatternsOracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural PatternsChris Muir
 
Oracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project DependenciesOracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project DependenciesChris Muir
 

More from Chris Muir (13)

Oracle ADF Architecture TV - Development - Version Control
Oracle ADF Architecture TV - Development - Version ControlOracle ADF Architecture TV - Development - Version Control
Oracle ADF Architecture TV - Development - Version Control
 
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project LayoutsOracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
Oracle ADF Architecture TV - Development - Naming Conventions & Project Layouts
 
Oracle ADF Architecture TV - Development - Performance & Tuning
Oracle ADF Architecture TV - Development - Performance & TuningOracle ADF Architecture TV - Development - Performance & Tuning
Oracle ADF Architecture TV - Development - Performance & Tuning
 
Oracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error HandlingOracle ADF Architecture TV - Development - Error Handling
Oracle ADF Architecture TV - Development - Error Handling
 
Oracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDSOracle ADF Architecture TV - Design - Application Customization and MDS
Oracle ADF Architecture TV - Design - Application Customization and MDS
 
Oracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for SecurityOracle ADF Architecture TV - Design - Designing for Security
Oracle ADF Architecture TV - Design - Designing for Security
 
Oracle ADF Architecture TV - Design - Architecting for PLSQL Integration
Oracle ADF Architecture TV - Design - Architecting for PLSQL IntegrationOracle ADF Architecture TV - Design - Architecting for PLSQL Integration
Oracle ADF Architecture TV - Design - Architecting for PLSQL Integration
 
Oracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service ArchitecturesOracle ADF Architecture TV - Design - ADF Service Architectures
Oracle ADF Architecture TV - Design - ADF Service Architectures
 
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication PatternOracle ADF Architecture TV - Design - Task Flow Communication Pattern
Oracle ADF Architecture TV - Design - Task Flow Communication Pattern
 
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module DesignOracle ADF Architecture TV - Design - ADF BC Application Module Design
Oracle ADF Architecture TV - Design - ADF BC Application Module Design
 
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope OptionsOracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
Oracle ADF Architecture TV - Design - Task Flow Data Control Scope Options
 
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural PatternsOracle ADF Architecture TV - Design - ADF Architectural Patterns
Oracle ADF Architecture TV - Design - ADF Architectural Patterns
 
Oracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project DependenciesOracle ADF Architecture TV - Design - Project Dependencies
Oracle ADF Architecture TV - Design - Project Dependencies
 

Recently uploaded

2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 

Recently uploaded (20)

2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 

Creating RESTful APIs With Oracle Database 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

  1. 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: Revrec-americasiebc_us@oracle.com 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.