URI Fragment Identifiers

Introduction A Universal Resource Identifier (URI) can be composed of several parts. The fragment identifier is the text appearing after the first occurrence of the # character in a URI. The semantics of a fragment identifier depend on the content type of the resource referenced by the URI. For HTML, the fragment identifier refers to the HTML element with the specified id. Similarly for XML, the fragment identifier refers to the XML element with the specified xml:id. Read more...

Serving static resources using Standalone Mode

Overview This article will guide you in how to serve static resources when running Oracle REST Data Services (ORDS) in Standalone Mode. Prerequisites Install ORDS Before you go any further you’ll need to download and install Oracle REST Data Services. Click here for instructions on how to get ORDS up and running in under 5 minutes. Configure the document root ORDS 3.0.1 and later support configuring a document root that can be used to serve arbitrary static resources. Read more...

Create an ORDS RESTful Service using PL/SQL

Overview This article will get you started with using ORDS 3.0.0 to create RESTful Services using the new PL/SQL API. Prerequisites Install ORDS Before you go any further you’ll need to download and install Oracle REST Data Services. Click here for instructions on how to get ORDS up and running in under 5 minutes. Enable database schema You’ll also need to enable a database schema to try out the steps in this article. Read more...

Enabling a Schema for ORDS 3.0.0 RESTful Services

Overview Before a database schema can be used to define RESTful Services you need to enable the schema so that ORDS can access it. It’s really simple and only takes a second to do. Prerequisites Before you go any further you’ll need to download and install ORDS 3.0.0 EA2. You can follow the instructions here, it’ll take just a couple of minutes. Let’s try it out The example below uses Oracle SQLCL 1, but you can use SQL Plus, SQL Developer or whatever your favorite SQL editor is. Read more...

Install Oracle REST Data Services 3.0.X in under 5 minutes

Overview This article will get you started with installing and configuring ORDS 3.0.0 and later. It should take less than 5 minutes to complete. Download Oracle REST Data Services You can download the Oracle REST Data Services (ORDS) distribution from Oracle Technology Network (OTN) by clicking this link. Unzip the distribution Unzip the file you just downloaded to a folder of your choosing. The name of the file will change depending on what the latest released version of ORDS is. Read more...

HTTP Route Patterns

A succint, intuitive and fully specified syntax for HTTP request routing rules

Farewell wordpress.com, time for a new blog

After 100 posts and approaching 8 years it’s time for me to close up this little old wordpress.com blog. For a long time now I’ve been itching to self host my blog, and I’ve finally found the time to pull the trigger on a new blog. From now on you can catch me on http://blog.cdivilly.com https://colm.divilly.org/blog/.

Oracle REST Data Services 3.0.0 EA2

The latest preview of Oracle REST Data Services 3.0.0 edition is now available for download on OTN. Click here to download it, or read the documentation here. This release includes a bunch of new functionality, highlights include: A more powerful syntax for RESTful Service URI Patterns, called Route Patterns. Supports optional parameters via query string parameters. Better matching algorithm, making it easier to use, no more confusion about overlapping URI Templates. Read more...

What does UnsupportedClassVersionError mean?

Every time the structure of Java byte-code changes, the version number embedded in .class files must also change. Java 1.2 uses major version 46 Java 1.3 uses major version 47 Java 1.4 uses major version 48 Java 5 uses major version 49 Java 6 uses major version 50 Java 7 uses major version 51 Java 8 uses major version 52 Each newer version of Java fully supports classes compiled with an older Java version. Read more...

Configuring custom error pages with Oracle REST Data Services

If you need to configure a custom error page instead of the error page generated by Oracle REST Data Services (ORDS), then do the following: Edit the defaults.xml file in the ORDS configuration folder Add the following setting to defaults.xml: 1 <entry key="error.externalPath">/path/to/error/pages/folder/</entry> /path/to/error/pages/folder is the fully qualified path to a folder which contains files named with the following pattern {status}.html, where {status} is the HTTP status code that you wish to define a custom error page for. Read more...
<< 2 of 12 >>
Ⓗ Home   Ⓑ Blog   Ⓐ About