I have exposed a data store entity (and thus, a database table) using Web APIs.

I have exposed a data store entity (and thus, a database table) using Web APIs. I got a URL which gives me a JSON exposing the data of the entire database table.

When I am logged in to that environment, and try to hit the URL in the same browser, it gives me the JSON. But, when I am logged out, it says "page can't be displayed". I thought the URL would ask me credentials, but instead, it is not giving anything.

My use case is, I want to hit the URL and get the JSON response using Java code, which I have toi write. What I think is, prior to that, I need to login into my environment using Java code, and after that I'll hit the URL using Java code and get the JSON response.

I have used several SOAP/HTTP related APIs in the past but have never faces any case like this. Generally when I hit a URL with security, it either asks me for credentials, or I have to give credentials in the message header, or in the message body, but here I am confused, as thi...

OriginalPostID-159558

OriginalPostID-159558

  Discussion posts and replies are publicly visible