See all operations
POST: projects/{project_id}/source-code/{branch_id}/revisions?start_Row={start_Row}&number_rows={number_rows}&sort_property={sort_property}&sort_direction={sort_direction}
Description
Retrieves a sorted, filtered, paginated list of revisions in the repository
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/Spira/Services/v6_0/RestService.svc/projects/{project_id}/source-code/{branch_id}/revisions?start_Row={start_Row}&number_rows={number_rows}&sort_property={sort_property}&sort_direction={sort_direction}
Request Parameters
Name
|
Description
|
project_id
|
The id of the project
|
branch_id
|
The id of the branch
|
start_Row
|
The starting row
|
number_rows
|
The number of rows to return
|
sort_property
|
The sort field
|
sort_direction
|
The sort direction (ASC|DESC)
|
Request Body
<ArrayOfRemoteFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v6_0.DataObjects">
<RemoteFilter>
<DateRangeValue i:nil="true" />
<IntValue i:nil="true" />
<MultiValue i:nil="true" />
<PropertyName i:nil="true" />
<StringValue i:nil="true" />
</RemoteFilter>
</ArrayOfRemoteFilter>
[{"PropertyName":null,
"IntValue":null,
"StringValue":null,
"MultiValue":null,
"DateRangeValue":null}]
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
<ArrayOfRemoteSourceCodeRevision xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v6_0.DataObjects">
<RemoteSourceCodeRevision>
<AuthorName i:nil="true" />
<ContentChanged>false</ContentChanged>
<Files i:nil="true" />
<Id i:nil="true" />
<Message i:nil="true" />
<Name i:nil="true" />
<PropertiesChanged>false</PropertiesChanged>
<UpdateDate>0001-01-01T00:00:00</UpdateDate>
</RemoteSourceCodeRevision>
</ArrayOfRemoteSourceCodeRevision>
[{"Id":null,
"Name":null,
"AuthorName":null,
"Message":null,
"UpdateDate":"0001-01-01T00:00:00",
"ContentChanged":false,
"PropertiesChanged":false,
"Files":null}]