Sharepoint on Premise 2019 Api

ikako ika 206 Reputation points
2022-11-29T09:37:30.827+00:00

Sharepoint on Premise 2019 Api

I am using Sharepoint Local and active directory
how to create an API step by step using Postman
GET, POST , PUT, DELETE
how to create an access token
all information only about Shrepoint Online

Please Help

Best Regards

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,297 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,803 questions
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,596 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,894 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
    2022-11-30T02:58:07.957+00:00

    Hi @ikako ika

    1. Please install Postman desktop agent first.
    2. Enable Basic Authentification in IIS Settings, then in postman, Authorization --> select Basic Auth type and set your account name and password.
      http://ibtissamchabiba.blogspot.com/2017/03/solution-for-401-unauthorized-error.html
      265483-image.png

    The above approach will not work until you are passing credentials or the authentication token in the request. We have another one, Request digest value is used only to prevent the cross-site scripting and not to authenticate the user.

    To authenticate the current logged-in user then you have to send one more header to the request to pass the credentials as:

     xhrFields: { withCredentials: true }  
    

    And also you have to enable the URL Rewrite option in the IIS to prevent the preflight option from getting dropped. Please refer this LINK to get it done.
    Here is some similar issues with yours to refer
    https://sharepoint.stackexchange.com/questions/242272/how-to-perform-post-operations-in-sharepoint-2013-using-rest-api-from-external-a/
    https://sharepoint.stackexchange.com/questions/258326/authenticating-to-sharepoint-from-fiddler-postman-fails-with-401

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.


    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. ikako ika 206 Reputation points
    2022-12-06T19:58:55.687+00:00

    thanks everyone i solved the problem

    BEST REGARDS

    1 person found this answer helpful.

  2. ikako ika 206 Reputation points
    2022-11-30T15:33:38.267+00:00

    Thank your Answer

    i make step by step but I have a authorization problem

    i attach pdf file 265832-sp.pdf

    0 comments No comments