Developer Partner Community

  • April 11, 2016

Design RESTful Services for Oracle JET by Kenneth Lange

Juergen Kress
PaaS Partner Adoption


When you start getting serious about Oracle JET, one of the first questions that pop up is how do you design the RESTful services that your Oracle JET application needs to call?

This is the first post in a mini-series that will try to answer that question.

So what are RESTful Services, anyway?

RESTful means REpresentational State Transfer. It sounds pretty complicated, but in reality it’s a piece of cake!

It means that a server has a “resource” and a client can request a “representation” of this resource. For example, if the resource is an article stored in a database then its representation could be a copy of all its attributes (i.e. headline, author, body, publish date, etc.) wrapped in JSON format.

The idea is that the client shouldn’t care about the server’s internal implementation of the resource. The server might store the article in an Oracle Database, or even a flat file, it doesn’t matter to the client. All the client cares about is the representation that it gets from the server.

When the client has received the representation, it can update the representation (for example, change the headline), and send its updated representation back to the server. The server can then update its internal resource with data from the updated representation.

The interaction between the client and server is stateless, which means that no client session information is stored on the server. Each client request must contain all the information needed for the server to fulfill the request. Needless to say, this does wonders for scalability!

To me the attractive thing about the RESTful architecture is its simplicity. You normally just need to glance at a RESTful service to get a pretty good idea about how to use it, and the clean interface between the client and server helps decouple the application and reduce complexity.

Why not just use SOAP?? Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Technorati Tags: WebLogic,WebLogic Community,Oracle,OPN,Jürgen Kress

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.