SpiraPlan: REST Web Service (v7.0)
Retrieves all timesheets owned by the currently authenticated user
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/v7_0/RestService.svc/timesheets
Nothing Expected
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.
<ArrayOfRemoteTimesheet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v7_0.DataObjects"> <RemoteTimesheet> <ApprovalDate i:nil="true" /> <Approver i:nil="true" /> <ApproverComments i:nil="true" /> <ApproverUserId i:nil="true" /> <CreationDate>0001-01-01T00:00:00</CreationDate> <EndDate>0001-01-01T00:00:00</EndDate> <Entries i:nil="true" /> <IsDeleted>false</IsDeleted> <LastUpdateDate>0001-01-01T00:00:00</LastUpdateDate> <StartDate>0001-01-01T00:00:00</StartDate> <Status i:nil="true" /> <Submitter i:nil="true" /> <SubmitterComments i:nil="true" /> <SubmitterUserId i:nil="true" /> <TimesheetId i:nil="true" /> <TimesheetStatusId i:nil="true" /> </RemoteTimesheet> </ArrayOfRemoteTimesheet>
[{"TimesheetId":null, "TimesheetStatusId":null, "SubmitterUserId":null, "ApproverUserId":null, "Submitter":null, "Approver":null, "Status":null, "CreationDate":"0001-01-01T00:00:00", "LastUpdateDate":"0001-01-01T00:00:00", "StartDate":"0001-01-01T00:00:00", "EndDate":"0001-01-01T00:00:00", "ApprovalDate":null, "IsDeleted":false, "Entries":null, "SubmitterComments":null, "ApproverComments":null}]