Trendsic Platform Service

<back to all web services

ProjectStatusRequest

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

public class dtos
{

    public static class ProjectStatusRequest
    {
        public Integer ProjectStatusID = null;
        public ArrayList<ProjectStatus> ProjectStatus = new ArrayList<ProjectStatus>();
        
        public Integer getProjectStatusID() { return ProjectStatusID; }
        public ProjectStatusRequest setProjectStatusID(Integer value) { this.ProjectStatusID = value; return this; }
        public ArrayList<ProjectStatus> getProjectStatus() { return ProjectStatus; }
        public ProjectStatusRequest setProjectStatus(ArrayList<ProjectStatus> value) { this.ProjectStatus = value; return this; }
    }

    public static class ProjectStatus
    {
        public Short ProjectStatusID = null;
        public String StatusName = null;
        public String StatusDescription = null;
        public Short ProgressionOrder = null;
        public Boolean EndOfLine = null;
        
        public Short getProjectStatusID() { return ProjectStatusID; }
        public ProjectStatus setProjectStatusID(Short value) { this.ProjectStatusID = value; return this; }
        public String getStatusName() { return StatusName; }
        public ProjectStatus setStatusName(String value) { this.StatusName = value; return this; }
        public String getStatusDescription() { return StatusDescription; }
        public ProjectStatus setStatusDescription(String value) { this.StatusDescription = value; return this; }
        public Short getProgressionOrder() { return ProgressionOrder; }
        public ProjectStatus setProgressionOrder(Short value) { this.ProgressionOrder = value; return this; }
        public Boolean isEndOfLine() { return EndOfLine; }
        public ProjectStatus setEndOfLine(Boolean value) { this.EndOfLine = value; return this; }
    }

    public static class ProjectStatusResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<ProjectStatus> ProjectStatus = new ArrayList<ProjectStatus>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ProjectStatusResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<ProjectStatus> getProjectStatus() { return ProjectStatus; }
        public ProjectStatusResponse setProjectStatus(ArrayList<ProjectStatus> value) { this.ProjectStatus = value; return this; }
    }

}

Java ProjectStatusRequest 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/ProjectStatus/{ProjectStatusID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectStatusID: 0,
	ProjectStatus: 
	[
		{
			ProjectStatusID: 0,
			StatusName: String,
			StatusDescription: String,
			ProgressionOrder: 0,
			EndOfLine: False
		}
	]
}
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
		}
	},
	ProjectStatus: 
	[
		{
			ProjectStatusID: 0,
			StatusName: String,
			StatusDescription: String,
			ProgressionOrder: 0,
			EndOfLine: False
		}
	]
}