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

Test & Monitor your APEX app - Part 2 Google Analytics

Monitoring your APEX application with Google Analytics is a must. It takes 5 minutes to set up in your APEX application and gives you lots of benefits.

Advantages.

Before go live we load tested our APEX app using JMeter, on the go live date we used Google Analytics to give us a real time view of how many users were logging in to see if it was getting close to the number of users we load tested the application with. Luckily, it was only around 10% of the amount of users we load tested and everything went OK.

You get access to the free Google Data Studio to create embeddable reports. We embedded reports in our APEX app back office showing views per day, browser usage etc.  It's a University staff APEX application, so interesting to see usage during the week compared to weekends.

View browser and operating system's usage statistics, which allows us to target testing on browsers for upcoming releases. Analytics showed us Edge was surprisingly the second most popular browser (after Chrome), beating Safari and Firefox, so we will give Edge more precedence in testing the next release.

Set-up Analytics in your APEX app

Create a Google Analytics account and place the JS code provided into your APEX app.

Open page 0 in your APEX app;

place the Google Analytics JS code in source;

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="<YOUR URL>"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', '<YOUR TAG>');
</script>

When you log into your Google Analytics account, you will get a real time overview straight away;

For little effort you get so much........

  • In-depth platform to track a multitude of website analytics.
  • Easy to understand metrics to allow informed decisions.
  • Great for making reports to present to people.
  • Easy to collaborate with multiple users if needed.
  • Has a ton of integrations with other marketing products.



Comments

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