Posts

Showing posts from August, 2021

Build beautiful and interactive API documentation for ORDS

Image
In this blog post, I will show you how to quickly build beautiful and interactive API documentation for your Oracle APEX REST data sources using  swagger hub . Using APEX v23.1. I downloaded the  titanic data set  and loaded them into tables in my APEX instance, created some authorized restful services and published them using swagger hub. You can create a free account on swagger hub.   Check out my titanic swagger hub here ; Press Authorize. Username REST, password Glasgow123! I won't go through creating RESTful services and just show you the four I created that sit on top of the titanic data set; The GET is a very simple SQL query;      select * from TITANIC_DATA_SET_NEW A handy tip is to add comments, as there will appear on swagger hub, making your API self documenting; Once you have created your modules, press the Generate Swagger Doc button; This will generate an open API for you.  Copy the API and paste it into swagger hub This will generate the documentation; As mentioned b

Sentiment Analysis for Oracle APEX using client side JavaScript

Image
If you have an interactive grid with any sort of review text a nice value add for the reviews is the addition of sentiment analysis .   This post will show you how to add a sentiment column of positive, negative or neutral and a score to your interactive grid using a couple of lines of code. Demo app This post is a quick front end value add of sentiment analysis to your app using client side JavaScript.  If this works for you I suggest using Oracle Text or some other sentiment analysis tool to do the sentiment analysis on the database rather than the front end as shown here. We are using a client side JavaScript library compendium  to do the sentiment analysis.  First download compendium.js from  here  and upload it to static application files in your APEX app.  Get the reference to the JS file, in my case  #APP_IMAGES#compendium.js Create a new page and include the JavaScript library. Create a new IG region with the static ID  ANSWERS_IG. S ample SQL for your interactive grid with 2 p

Popular posts from this blog

Oracle APEX Interactive Grid colour cells based on a condition using JavaScript and CSS

Oracle APEX pretty checkbox item plugin

Build beautiful and interactive API documentation for ORDS