Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to consume rest API (POST Method) with basic authentication using java?

User_UM8AVAug 31 2021

Dear Experts,
We have a restful API (POST) which have basic authentication (username and password) and some query parameters with type string .
I can test the API in the postman and it working fine . What I need is writing a jave code which allow me to call this API from my custom java application .
I found many links but I got confused . please advise .

I’m working on Jdeveloper 12.2.1.4 and I’m using jersy jax rs2 .
Thanks in advance

Comments

Post Details

Added on Aug 31 2021
0 comments
358 views