Search-2142: Configuring the right api endpoint, as the context changes from solr, solr admin and alfresco apis (#50)

This commit is contained in:
Meenal Bhave
2020-03-26 16:37:39 +00:00
committed by GitHub
parent 917961569d
commit 838794f274
2 changed files with 2 additions and 0 deletions

View File

@@ -127,6 +127,7 @@ public class SearchSQLAPI extends ModelRequest<SearchSQLAPI>
public SearchSQLAPI(RestWrapper restWrapper)
{
super(restWrapper);
restWrapper.configureAlfrescoEndpoint();
RestAssured.basePath = "alfresco/api/-default-/public/search/versions/1";
restWrapper.configureRequestSpec().setBasePath(RestAssured.basePath);
}

View File

@@ -42,6 +42,7 @@ public class ShardInfoAPI extends ModelRequest<ShardInfoAPI>
public ShardInfoAPI(RestWrapper restWrapper)
{
super(restWrapper);
restWrapper.configureAlfrescoEndpoint();
RestAssured.basePath = "alfresco/api/-default-/private/search/versions/1";
restWrapper.configureRequestSpec().setBasePath(RestAssured.basePath);
}