Apr 28 2020 02:03 AM
Hi,
I need sharepoint API url for accessing sharepoint data.
Please suggest the the list of API.
regards,
Nitin chauhan
Apr 28 2020 05:36 AM - edited Apr 28 2020 05:37 AM
Apr 28 2020 05:47 AM
I am not getting result when posting the request like http://<site url>/_api/web/lists in postman
whre site url = https://hclo365.sharepoint.com/Sites/
the full url is https://hclo365.sharepoint.com/Sites/_api/web/lists/getByTitle('SPlist').
Am I missing anything.
Apr 28 2020 06:02 AM
@hcl_nitin your url is not correct, /Sites/ its causing the problem. It needs to be the site url plus /_api/...
If using the root site collection:
https://hclo365.sharepoint.com/_api/web/lists/getByTitle('SPlist')
If using a different site collection:
https://hclo365.sharepoint.com/sites/TestSite/_api/web/lists/getByTitle('SPlist')
Apr 28 2020 06:13 AM
@Joel Rodrigues Please help me. As I am new in usinf web api
while using https://hclo365.sharepoint.com/_api/web/lists/getByTitle('SPlist') i am getting
Apr 28 2020 06:18 AM
even when I am using
https://hclo365.sharepoint.com/sites/Deployment Tracker/_api/web/lists/
I am not getting anything. where "Deployment Tracker" is my site name
Apr 28 2020 07:39 AM
Open a browser and access the 'SPList' list on that site. If you have permissions to see the list, you can also query it's data via the REST API. Ensure that the url is correct.
Apr 28 2020 07:41 AM
@hcl_nitin regarding the Deployment Site, ensure that the url to the site is correct. You have a space in the URL, which is not valid. Open that site and copy the url from the browser.
Perhaps it's better that you follow the link that @Beau Cameron shared initially as it will help you a lot with the fundamentals