Trendsic Platform Service

<back to all web services

MyWorkPhotosRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/photos/mine

export class WorkPhotoRow
{
    public WorkPhotoID: number;
    public ContactId: number;
    public TakerName: string;
    public RoleKey: string;
    public TargetType: string;
    public TargetId: string;
    public TargetRef: string;
    public TargetTitle: string;
    public Kind: string;
    public Caption: string;
    public CapturedAtUtc: string;
    public Lat?: number;
    public Lng?: number;
    public AccuracyM?: number;
    public DistanceM?: number;
    public InApp: boolean;
    public Source: string;
    public IsLate: boolean;
    public CountsAsProof: boolean;
    public MarkCount: number;
    public IssueOpen?: boolean;
    public IssueClosedBy: string;
    public FromGeneral: boolean;
    public Url: string;
    public MarkedUrl: string;
    public TriageStatus: string;
    public RouteTo: string;
    public SuggestType: string;
    public SuggestId: string;
    public SuggestTitle: string;
    public SuggestWhy: string;
    public FiledType: string;
    public FiledId: string;
    public FiledTitle: string;
    public ReplyText: string;
    public TriagedBy: string;
    public TriagedAtUtc?: string;
    public ExpiresAtUtc?: string;

    public constructor(init?: Partial<WorkPhotoRow>) { (Object as any).assign(this, init); }
}

export class WorkPhotoListResponse
{
    public Photos: WorkPhotoRow[] = [];
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<WorkPhotoListResponse>) { (Object as any).assign(this, init); }
}

export class MyWorkPhotosRequest
{
    public Take: number;

    public constructor(init?: Partial<MyWorkPhotosRequest>) { (Object as any).assign(this, init); }
}

TypeScript MyWorkPhotosRequest 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.

GET /v1/worker/photos/mine HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Photos: 
	[
		{
			WorkPhotoID: 0,
			ContactId: 0,
			TakerName: String,
			RoleKey: String,
			TargetType: String,
			TargetId: String,
			TargetRef: String,
			TargetTitle: String,
			Kind: String,
			Caption: String,
			CapturedAtUtc: 0001-01-01,
			Lat: 0,
			Lng: 0,
			AccuracyM: 0,
			DistanceM: 0,
			InApp: False,
			Source: String,
			IsLate: False,
			CountsAsProof: False,
			MarkCount: 0,
			IssueOpen: False,
			IssueClosedBy: String,
			FromGeneral: False,
			Url: String,
			MarkedUrl: String,
			TriageStatus: String,
			RouteTo: String,
			SuggestType: String,
			SuggestId: String,
			SuggestTitle: String,
			SuggestWhy: String,
			FiledType: String,
			FiledId: String,
			FiledTitle: String,
			ReplyText: String,
			TriagedBy: String,
			TriagedAtUtc: 0001-01-01,
			ExpiresAtUtc: 0001-01-01
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}