Oracle REST Data Services (ORDS) started as web listener for the database. It’s job was to accept requests and deliver data from the database – be that HTML, XML, JSON, or files.
But a few years ago ORDS received a game-changing update – SQL Developer Web.
Instead of needing SQL Developer (on your desktop), APEX, or making yourself learn and use the PL/SQL APIs to define a RESTful Web Service, you can now easily build these directly in your browser.
- There is nothing wrong with SQL Developer desktop’s REST interface – but it requires you have it installed
- There is nothing wrong with APEX’s REST Workshop – it just requires that you already have APEX going
- There is nothing wrong with our PL/SQL APIs – in fact, they should be used when you want to automate deployments and source control/backup your REST definitions
But…being able to do an install, rest enable a schema, and immediately login to a rich interface for managing your database AND your RESTful Web Services is the best thing to happen to ORDS in a very long time.
A Quick Tour
You need to have ORDS installed and SQL Developer Web enabled. You need a REST Enabled schema.
Then you can login and start building stuff.
If you need help with this part, watch the movie!
The REST Dashboard
You can open the REST dashboard via the Hamburger button, upper left hand corner, or click the REST card on the SQL Developer Web home page.
If you need help, take the tour – click the binoculars button up top in the right hand corner.
Objects – an overview of what REST bits are defined in my schema. Does not currently include REST Enabled schema objects like tables, views, & PL/SQL – coming in version 20.4
Security – Is my schema catalog protected? Do I have modules defined but not published? Of those published modules, how many aren’t protected by name or pattern by a privilege?
Recent Objects – Not just a report of recent activity, I can also use this to quickly tweak an object definition without having to navigate using the cards or menus.
Let’s Build Something
I’m not going to show you everything, all at once – there’s just too much for a single blog post. But let’s quickly build a working REST endpoint (GET).
This quick screengrab shows –
- defining a module
- building a template
- coding a handler (code insight, sql execution with binds!)
- testing the call
- exporting the PL/SQL API definition
More to come!
We’ll talk in more detail on building Web Services, but also SECURING them, specifically with the new OAuth2 client interface.