Sharepoint 2019 onprem: Rest api access

karteek koraganji 1 Reputation point
2020-11-04T13:11:26.6+00:00

Hi,

I have installed Sharepoint 2019 in one of the vms.

  1. I have created Site Collections using sharepoint central Administration and URL is https://<ipaddess/host>:<port>/sites/testingsites.
  2. I did https bining for a specific port in order to establish the secure connection.
  3. I have created a self signed certificate in IIS.

I tried to access the the url for site collections using https://<ipaddess/host>:<port>/sites/testingsites and the page is loaded successfully (browser as well as in postman).
While I am trying to access the rest api https://<ipaddess/host>:<port>/sites/testingsites/_api/web/ I am getting the below error message(browser as well as in postman).

The Web application at https://<ipaddess/host>:<port>/sites/testingsites/_api/web/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

the same exception is coming for
https://<ipaddess/host>:<port>/sites/testingsites/_api/web/allproperties,
https://<ipaddess/host>:<port>/sites/testingsites/_api/site/owner,
https://<ipaddess/host>:<port>/sites/testingsites/_api/Web/Webinfos

Any suggestions?

Thanks in advance
Karteek K

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,608 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,941 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-11-11T08:46:14.293+00:00

    If the IP in the pictures you share is a public IP, you need to code it to avoid leakage.
    Because I can’t reproduce your problem, I can’t provide more valuable help, I suggest you raise a ticket on SharePoint Server Support, the corresponding team could help this further.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.