Trendsic Platform Service

<back to all web services

CameraTargetsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/worker/camera/targets
CameraTargetsResponse Parameters:
NameParameterData TypeRequiredDescription
RolesformList<CameraRoleTargets>No
ItemsformList<CameraTarget>No
ArrivalPhotoformstringNo
ServerUtcformDateTimeNo
ResponseStatusformResponseStatusNo
CameraRoleTargets Parameters:
NameParameterData TypeRequiredDescription
RoleformstringNo
CurformstringNo
AltsformList<string>No
RecentformList<string>No
UpcomingformList<string>No
GenformstringNo
LockformstringNo
HiddenformboolNo
DrivingformboolNo
CameraTarget Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
TypeformstringNo
RecordIdformstringNo
RoleformstringNo
CodeformstringNo
TitleformstringNo
DetailformstringNo
StateformstringNo
KindsformList<string>No
DefformstringNo
ClosedformboolNo
ProofNeedformstringNo
InAppformboolNo
GalleryformboolNo
TomorrowformboolNo
SiteLatformdecimal?No
SiteLngformdecimal?No
CountsformDictionary<string, int>No
LogDateformstringNo
SeqformintNo
SeqOfformintNo
WindowformstringNo
ServiceformstringNo

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/camera/targets HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Roles: 
	[
		{
			Role: String,
			Cur: String,
			Alts: 
			[
				String
			],
			Recent: 
			[
				String
			],
			Upcoming: 
			[
				String
			],
			Gen: String,
			Lock: String,
			Hidden: False,
			Driving: False
		}
	],
	Items: 
	[
		{
			Id: String,
			Type: String,
			RecordId: String,
			Role: String,
			Code: String,
			Title: String,
			Detail: String,
			State: String,
			Kinds: 
			[
				String
			],
			Def: String,
			Closed: False,
			ProofNeed: String,
			InApp: False,
			Gallery: False,
			Tomorrow: False,
			SiteLat: 0,
			SiteLng: 0,
			Counts: 
			{
				String: 0
			},
			LogDate: String,
			Seq: 0,
			SeqOf: 0,
			Window: String,
			Service: String
		}
	],
	ArrivalPhoto: String,
	ServerUtc: 0001-01-01,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}