From a141b409bb9d0e6693eef57b3592bb3ea7350bb1 Mon Sep 17 00:00:00 2001 From: Arnaud Bouchez Date: Mon, 8 Jan 2024 09:04:36 +0100 Subject: [PATCH] made it explicit not to use plain TRestServer - see https://synopse.info/forum/viewtopic.php?id=6781 --- src/mormot.commit.inc | 2 +- src/rest/mormot.rest.server.pas | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mormot.commit.inc b/src/mormot.commit.inc index b78cf900c..47fb13e56 100644 --- a/src/mormot.commit.inc +++ b/src/mormot.commit.inc @@ -1 +1 @@ -'2.2.6621' +'2.2.6622' diff --git a/src/rest/mormot.rest.server.pas b/src/rest/mormot.rest.server.pas index fa3754277..f942b8485 100644 --- a/src/rest/mormot.rest.server.pas +++ b/src/rest/mormot.rest.server.pas @@ -1747,9 +1747,10 @@ TRestServerUriPagingParameters = record TOnInternalInfo = procedure(Sender: TRestUriContext; var Info: TDocVariantData) of object; - /// a generic REpresentational State Transfer (REST) server + /// a generic/abstract REpresentational State Transfer (REST) server // - descendent must implement the protected EngineList() Retrieve() Add() - // Update() Delete() methods + // Update() Delete() methods - so if you want a REST server with no ORM + // (e.g. for a pure SOA server), use (or inherit) TRestServerFullMemory // - automatic call of this methods by a generic Uri() RESTful function // - any published method of descendants must match TOnRestServerCallBack // prototype, and is expected to be thread-safe