Merge branch 'RM-4361_ReadRecordsRestAPI' into RM-4430_FileUnfiledRecordActionAPITests

# Conflicts:
#	rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/igCoreAPI/RecordsAPI.java
This commit is contained in:
Rodica Sutu
2017-01-04 18:25:35 +02:00
4 changed files with 73 additions and 57 deletions

View File

@@ -81,7 +81,9 @@ public class RecordsAPI extends RMModelRequest
public <T> T getRecordContentText(String recordId) throws Exception
{
mandatoryString("recordId", recordId);
Response response = given().auth().basic(getRMRestWrapper().getTestUser().getUsername(), getRMRestWrapper().getTestUser().getPassword())
Response response = given().auth().basic(getRMRestWrapper().getTestUser().getUsername(),
getRMRestWrapper().getTestUser().getPassword()
)
.get("records/{recordId}/content", recordId)
.andReturn();
@@ -91,10 +93,10 @@ public class RecordsAPI extends RMModelRequest
}
/**
* Get the html response for the electronic record
* Get the content RestHtmlResponse(Response header and body) for the electronic record
*
* @param recordId The id of the electronic record
* @return The content for the given record id
* @return The body and the header for the record
* @throws Exception for the following cases:
* <ul>
* <li>{@code recordId} has no content</li>