| POST,OPTIONS | /v1/CrewAssignments/Export/CSV/{SelectedDate} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CrewAssignmentsExportCsvRequest
{
public Date SelectedDate = null;
public ArrayList<CrewAssignmentProject> projects = new ArrayList<CrewAssignmentProject>();
public Date getSelectedDate() { return SelectedDate; }
public CrewAssignmentsExportCsvRequest setSelectedDate(Date value) { this.SelectedDate = value; return this; }
public ArrayList<CrewAssignmentProject> getProjects() { return projects; }
public CrewAssignmentsExportCsvRequest setProjects(ArrayList<CrewAssignmentProject> value) { this.projects = value; return this; }
}
public static class CrewAssignmentProject
{
public String ProjectName = null;
public ArrayList<CrewAssignmentJob> Jobs = new ArrayList<CrewAssignmentJob>();
public String getProjectName() { return ProjectName; }
public CrewAssignmentProject setProjectName(String value) { this.ProjectName = value; return this; }
public ArrayList<CrewAssignmentJob> getJobs() { return Jobs; }
public CrewAssignmentProject setJobs(ArrayList<CrewAssignmentJob> value) { this.Jobs = value; return this; }
}
public static class CrewAssignmentJob
{
public String JobName = null;
public ArrayList<CrewAssignmentCrewMember> CrewMembers = new ArrayList<CrewAssignmentCrewMember>();
public ArrayList<CrewAssignmentEquipment> Equipment = new ArrayList<CrewAssignmentEquipment>();
public String getJobName() { return JobName; }
public CrewAssignmentJob setJobName(String value) { this.JobName = value; return this; }
public ArrayList<CrewAssignmentCrewMember> getCrewMembers() { return CrewMembers; }
public CrewAssignmentJob setCrewMembers(ArrayList<CrewAssignmentCrewMember> value) { this.CrewMembers = value; return this; }
public ArrayList<CrewAssignmentEquipment> getEquipment() { return Equipment; }
public CrewAssignmentJob setEquipment(ArrayList<CrewAssignmentEquipment> value) { this.Equipment = value; return this; }
}
public static class CrewAssignmentCrewMember
{
public String Name = null;
public String Status = null;
public String getName() { return Name; }
public CrewAssignmentCrewMember setName(String value) { this.Name = value; return this; }
public String getStatus() { return Status; }
public CrewAssignmentCrewMember setStatus(String value) { this.Status = value; return this; }
}
public static class CrewAssignmentEquipment
{
public String Name = null;
public String Status = null;
public String getName() { return Name; }
public CrewAssignmentEquipment setName(String value) { this.Name = value; return this; }
public String getStatus() { return Status; }
public CrewAssignmentEquipment setStatus(String value) { this.Status = value; return this; }
}
public static class CrewAssignmentsExportCsvResponse
{
public ResponseStatus ResponseStatus = null;
public String file = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CrewAssignmentsExportCsvResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public String getFile() { return file; }
public CrewAssignmentsExportCsvResponse setFile(String value) { this.file = value; return this; }
}
}
Java CrewAssignmentsExportCsvRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/CrewAssignments/Export/CSV/{SelectedDate} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"SelectedDate":"0001-01-01T00:00:00.0000000","projects":[{"ProjectName":"String","Jobs":[{"JobName":"String","CrewMembers":[{"Name":"String","Status":"String"}],"Equipment":[{"Name":"String","Status":"String"}]}]}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"file":"String"}