Trendsic Platform Service

<back to all web services

MessagingEvaluateRequest

The following routes are available for this service:
POST/v1/messaging/evaluate
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Report:
    tenants: int = 0
    almost_up_published: int = 0
    running_behind_published: int = 0
    branches_swept: int = 0
    rollups_rebuilt: int = 0
    retries_sent: int = 0
    problems: List[str] = field(default_factory=list)


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MessagingEvaluateResponse:
    response_status: Optional[ResponseStatus] = None
    report: Optional[Report] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MessagingEvaluateRequest:
    pass

Python MessagingEvaluateRequest 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/messaging/evaluate HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
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
		}
	},
	Report: 
	{
		Tenants: 0,
		AlmostUpPublished: 0,
		RunningBehindPublished: 0,
		BranchesSwept: 0,
		RollupsRebuilt: 0,
		RetriesSent: 0,
		Problems: 
		[
			String
		]
	}
}