Forum Discussion
hcl_nitin
Apr 28, 2020Copper Contributor
sharepoint api link
Hi,
I need sharepoint API url for accessing sharepoint data.
Please suggest the the list of API.
regards,
Nitin chauhan
- hcl_nitinCopper Contributor
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.
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')