Show/Hide Toolbars

TMS XData Documentation

Navigation: » No topics above this level «


Scroll Prev Top Next More

TMS XData is a Delphi framework that allows you to create HTTP/HTTPS servers that expose data through REST/JSON. It is highly integrated into TMS Aurelius in a way that creating XData services based on applications with existing Aurelius mappings are just a matter of a few lines of code. XData defines URL conventions for adressing resources, and it specifies the JSON format of message payloads. It is heavily based on the OData standard. Such conventions, with the benefit of existing Aurelius mapping, allow building a full REST/JSON server with minimum writing of code. TMS XData uses TMS Sparkle as its core communication library.


TMS XData product page:

TMS Software site:

PDF version of this documentation:


Documentation Topics





oWhat's New

oCopyright Notice

oGetting Support

oBreaking Changes

Getting Started

oXData Server Wizards

oCommon Tasks

oUsing Design-Time Components

oCreating the Server Manually

oExample 1: In-memory SQLite for testing/development

oExample 2: MySQL Server with dbExpress (from Delphi code)

oExample 3: MS SQL Server with FireDAC (using TDataModule)

Basic XData Programming

oCreating XData Server


oIDBConnectionPool Interface

oIDBConnectionFactory Interface

oOpenAPI/Swagger Support

Design-Time Components

oTXDataServer Component

oTXDataConnectionPool Component

Server-Side Events

oUsing Events

oOnEntityGet Event

oOnEntityList Event

oOnEntityInserting Event

oOnEntityModifying Event

oOnEntityDeleting Event

oOnModuleException Event

oAuthentication Example using JSON Web Token (JWT)

Entity Model

oEntity Model Concepts

oAurelius Equivalence to Entity Model

oUsing TXDataModelBuilder

oMultiple servers and models

URL Conventions

oResource Path

oQuery Options

oBuilt-in Functions

oLiterals in URI

oCustom Functions

JSON Format

oEntity Representation

oCollection of Entities

oIndividual Properties

oError Response

oCanonical Id

Requesting Data

oRequesting Single Entities

oQuerying Collections

oRequesting Associated Entities

oRequesting Individual Properties

oRequesting Streams (Blobs)

oHTTP Request Headers

Data Modification

oCreate an Entity

oUpdate an Entity

oDelete an Entity

oManaging Streams (Blobs)

Service Operations

oXData Service Wizard

oService Operations Tutorial

oCreating Service Contract

oService Implementation


oServer Memory Management

oInvoking Operations using XData Client

oInvoking Operations using HTTP


oRequesting a Single Entity

oRequesting an Entity List

oCreating Entities

oUpdating Entities

oRemoving Entities

oInvoking Service Operations

oClient Memory Management

oClient and Multi-Model

oAuthentication Settings

oIgnoring Unknown Properties

Web Applications with TMS Web Core

oSetting Up the Connection with TXDataWebConnection

oUsing TXDataWebClient

oUsing TXDataWebDataset

oXData Web Application Wizard