Table of Contents

TXDataServer.SerializeInstanceType Property

Gets or sets when the object type (the xdata.type annotation) is included in JSON responses.

Remarks

Defaults to IfNeeded, which includes the annotation only when the entity is of a type derived from the type expected by the request. Clients can override this value per request using the xdata-serialize-instance-type HTTP header.

Syntax

Unit: XData.Comp.Server

property TXDataServer.SerializeInstanceType: TInstanceTypeSerialization

See also