ORDS REST-Enabled SQL Service: How to Customize Response Format (Complete Guide)
Hello fellas!! 👋 Today's topic: Understanding the REST-Enabled SQL Service in ORDS and How to Customize its Response Format. REST-Enabled SQL Service in ORDS What is it? The REST-Enabled SQL service is an HTTPS web service that provides access to the Oracle Database SQL engine. You can POST SQL statements to the service. The service then runs the SQL statements against Oracle Database and returns the result to the client in a JSON format. Example: Making a Request When making a request to the REST-Enabled SQL Service, you typically get a response by default that looks like this: Sample Request curl --location 'http://localhost:8086/ords/<schema_alias>/_/sql' \ --header 'Content-Type: application/json' \ -u "user:dummySecret" \ --data '{ "statementText": "select sysdate from dual" }' Default Response Format ...