I have a requirement where I need to verify whether the list/library with given name already exists or not.
I am implementing REST API Calls from C# so this post does not help me as I am not getting error message given in this post in C# catch
. I am always getting
The remote server returned an error: (404) Not Found.
error, and I can use this error message to identify whether list/library exists or not
Another approach is also there to get all the list available and then iterate it and find your list name within that but this approach I can't implement as I am having large number of list/library so this approach will bring my code performance down.
So I am in search of an Ultimate REST endpoint URL using which I can directly get whether the list/library exists or not.
I referred Complete basic operations using SharePoint 2013 REST endpoints and Lists and list items REST API reference but I was unable to find such direct endpoint url.
So if you have gone through this requirement then please suggest an proper approach or guideline.
I can't use CSOM or SSOM.