Commit Graph

12 Commits

Author SHA1 Message Date
Daniele Teti
6583f6b4ba Addes new ResponseMethod "StatusResponse" 2024-10-16 07:58:30 +02:00
Daniele Teti
9c1d483c44 Updated sample (refactored to functional actions when possibile) 2024-10-05 14:22:15 +02:00
Daniele Teti
082089f9a1 Updated sample projects to D12.2; New middleware TMVCShutdownMiddleware (useful to create a route which shutdown the server in automated testing environments)
Some checks are pending
TOC Generator / TOC Generator (push) Waiting to run
2024-10-01 09:46:54 +02:00
Daniele Teti
c420be5f24 Improved Sample functional_actions_showcase 2024-07-09 23:21:50 +02:00
Daniele Teti
66f7fcb8ac Added MVCNameCaseDefault 2024-06-19 14:25:04 +02:00
Daniele Teti
fcee922c2a Functional Actions Sample Clean 2024-05-23 10:03:30 +02:00
Daniele Teti
af0984e050 Added
function OKResponse(const Body: TObject): IMVCResponse; overload;
    function OKResponse: IMVCResponse; overload;
    function NotFoundResponse(const Body: TObject): IMVCResponse; overload;
    function NotFoundResponse: IMVCResponse; overload;
    function NoContentResponse: IMVCResponse;
    function UnauthorizedResponse: IMVCResponse;
    function BadRequestResponse: IMVCResponse; overload;
    function BadRequestResponse(const Error: TObject): IMVCResponse; overload;
    function CreatedResponse(const Location: string = ''; const Body: TObject = nil): IMVCResponse;
    function AcceptedResponse(const Location: string = ''; const Body: TObject = nil): IMVCResponse;
    function ConflictResult: IMVCResponse;
    function InternalServerErrorResponse: IMVCResponse;
2024-04-03 16:11:38 +02:00
Daniele Teti
cc5789d56e Now "NoRouteFound" error returns the correct content-type 2024-02-21 14:41:25 +01:00
Daniele Teti
30a247281f Breaking Change! TMVCActiveRecordController uses (and requires) TMVCActiveRecordMiddleware - it doesn't require a TFDConnection on constructor 2024-01-20 10:37:34 +01:00
Daniele Teti
85d27bc00b Improved tasks.py - not is able to discover the "best" delphi version to use to compile (latest one) 2023-11-06 14:46:39 +01:00
Daniele Teti
6590e508c7 Samples Cleaning 2023-11-01 23:13:17 +01:00
Daniele Teti
52a5840bd5 Updated sample to show TryGetNamedSQLQuery 2023-10-17 18:08:30 +02:00