Working on a project where we are creating a new Site Collection for a department. We are new to SharePoint. During our testing we created a Site Collection called Test. I came to realize that the Test Site Collection was a Sub-Site under our main tenancy. tenancy.sharepoint.com/Test
I did all my research testing both the REST API and the Search REST API against this Test site.
This would successfully return the results. This test site, in the Admin Center, is listed as a Site Collection with the address of tenancy.sharepoint.com/sites/Test
After having tested various REST calls, I then went and created a New Site Collection for the project we're to be working on. This is an actual Site Collection that isn't a Sub-Site of our main site. The Admin Center lists this Site Collection with the address of tenancy.sharepoint.com/sites/department name It has a Document App Library module installed with the same name of Publications.
I added a document to the site, but when I execute the same REST API call it just doesn't respond. It doesn't time out, it just gives a white page.
I tried to use the SharePoint Search Query Tool, which uses the Search REST API. https://sp2013searchtool.codeplex.com/
In the connection area, I enter a SharePoint Site URL of tenancy.sharepoint.com/Test
I'm able to successfully login. I'm able to conduct searches.
If I enter: tenancy.sharepoint.com/department name It says that the login is successful. When I conduct a search the Connection section title turns red, and I get a 404 Not Found error.
If I enter tenancy.sharepoint.com/sites/department name I'm able to conduct searches, but the results are pulling documents from the tenancy.sharepoint.com/sites/Test Site Collection, and nothing from the department's Site Collection is returned.
What am I missing?
PS: I have a lot of example urls above, and the site only allowed me to have a single link within the question. So I removed all the https from the URLs.