Trendsic Platform Service

<back to all web services

CrewRequest

Requires Authentication
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/Crew/{CrewID}
GET,POST,PUT,DELETE,OPTIONS/v1/Crew
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CrewRequest
    {
        public Integer CrewID = null;
        public ArrayList<Crew> Crew = new ArrayList<Crew>();
        
        public Integer getCrewID() { return CrewID; }
        public CrewRequest setCrewID(Integer value) { this.CrewID = value; return this; }
        public ArrayList<Crew> getCrew() { return Crew; }
        public CrewRequest setCrew(ArrayList<Crew> value) { this.Crew = value; return this; }
    }

    public static class Crew
    {
        public Integer CrewID = null;
        public String CrewName = null;
        public String CrewNumber = null;
        public Integer CrewManagerContactID = null;
        public String CrewManagerContactName = null;
        public String CrewColor = null;
        public Date RecordCreatedDate = null;
        public Boolean Active = null;
        public UUID CreatedByUID = null;
        public Integer ProjectID = null;
        public Integer CrewMemberCount = null;
        public Integer ProjectCrewID = null;
        public String ProjectName = null;
        
        public Integer getCrewID() { return CrewID; }
        public Crew setCrewID(Integer value) { this.CrewID = value; return this; }
        public String getCrewName() { return CrewName; }
        public Crew setCrewName(String value) { this.CrewName = value; return this; }
        public String getCrewNumber() { return CrewNumber; }
        public Crew setCrewNumber(String value) { this.CrewNumber = value; return this; }
        public Integer getCrewManagerContactID() { return CrewManagerContactID; }
        public Crew setCrewManagerContactID(Integer value) { this.CrewManagerContactID = value; return this; }
        public String getCrewManagerContactName() { return CrewManagerContactName; }
        public Crew setCrewManagerContactName(String value) { this.CrewManagerContactName = value; return this; }
        public String getCrewColor() { return CrewColor; }
        public Crew setCrewColor(String value) { this.CrewColor = value; return this; }
        public Date getRecordCreatedDate() { return RecordCreatedDate; }
        public Crew setRecordCreatedDate(Date value) { this.RecordCreatedDate = value; return this; }
        public Boolean isActive() { return Active; }
        public Crew setActive(Boolean value) { this.Active = value; return this; }
        public UUID getCreatedByUID() { return CreatedByUID; }
        public Crew setCreatedByUID(UUID value) { this.CreatedByUID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public Crew setProjectID(Integer value) { this.ProjectID = value; return this; }
        public Integer getCrewMemberCount() { return CrewMemberCount; }
        public Crew setCrewMemberCount(Integer value) { this.CrewMemberCount = value; return this; }
        public Integer getProjectCrewID() { return ProjectCrewID; }
        public Crew setProjectCrewID(Integer value) { this.ProjectCrewID = value; return this; }
        public String getProjectName() { return ProjectName; }
        public Crew setProjectName(String value) { this.ProjectName = value; return this; }
    }

    public static class CrewResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Crew> Crew = new ArrayList<Crew>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CrewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Crew> getCrew() { return Crew; }
        public CrewResponse setCrew(ArrayList<Crew> value) { this.Crew = value; return this; }
    }

}

Java CrewRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/Crew/{CrewID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CrewID: 0,
	Crew: 
	[
		{
			CrewID: 0,
			CrewName: String,
			CrewNumber: String,
			CrewManagerContactID: 0,
			CrewManagerContactName: String,
			CrewColor: String,
			RecordCreatedDate: 0001-01-01,
			Active: False,
			CreatedByUID: 00000000000000000000000000000000,
			ProjectID: 0,
			CrewMemberCount: 0,
			ProjectCrewID: 0,
			ProjectName: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Crew: 
	[
		{
			CrewID: 0,
			CrewName: String,
			CrewNumber: String,
			CrewManagerContactID: 0,
			CrewManagerContactName: String,
			CrewColor: String,
			RecordCreatedDate: 0001-01-01,
			Active: False,
			CreatedByUID: 00000000000000000000000000000000,
			ProjectID: 0,
			CrewMemberCount: 0,
			ProjectCrewID: 0,
			ProjectName: String
		}
	]
}