I am using a sandbox environment for aem. I want to use rest API of AEM and while using them on chrome browser I am getting a json response but while using those APIs in postman I am getting status 401 Unauthorized in response and body part of response is blank. In response headers I am getting www-authenticate header as Basic realm="Sling (Development)". I have matched username and password in authorization parameter that is correct.
While making the request from postman you need to select Authorization type as "Basic Auth" and need to pass the username and password. Once you pass these information and make the request it will return 200 response and will no more give 401.