DEV Community

Discussion on: REST API Guide

Collapse
 
rajneeshshukl14 profile image
Rajneesh shukla • Edited

Hello All,

I need to discuss regarding RESTful API for accessing oracle database tables.
API was created using Oracle Rest Data Services (rest data enable at SQL developer).
I am getting error : 401 unauthorized while doing query through post man as below:

GET localhost:8080/ords/autodemo2/meta...

However below is working fine (code 200 OK):
localhost:8080/ords/autodemo2/open...

Not sure why metadata query is facing authorization issue while swagger(open API) one is giving response without issue at postman.

I tried for other schema alias autodemo and here both are giving proper response:
localhost:8080/ords/autodemo/metad...
localhost:8080/ords/autodemo/open-...

Thanks,
Rajneesh