Commit Graph

2237 Commits

Author SHA1 Message Date
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
8c80ed7a3e Cleanup TransactionContext, better exception message for no data found. 2024-04-03 14:41:29 +02:00
Daniele Teti
e370718a34 Added EMVCActiveRecordTransactionContext 2024-04-03 09:59:53 +02:00
Daniele Teti
9b6cb6386b Improved articles_crud_server sample 2024-03-31 18:37:09 +02:00
Daniele Teti
4349f20d95 TransactionContext (WIP) 2024-03-31 18:09:13 +02:00
Daniele Teti
b41e245bbc articles_crud migrated to services container 2024-03-30 00:30:14 +01:00
Daniele Teti
6142c2d929 Container (WIP) - almost ready to be merged into master 2024-03-28 23:57:59 +01:00
Daniele Teti
1920249eb9 ServiceContainerDecorator (WIP) 2024-03-28 16:31:44 +01:00
Daniele Teti
9035aed2e7 ServiceContainer (WIP) - removed params in Resolve 2024-03-27 00:24:00 +01:00
Daniele Teti
cf2450465b ServiceContainer (WIP) 2024-03-27 00:10:48 +01:00
Daniele Teti
b592963a78 ServiceContainer (wip) 2024-03-25 00:15:50 +01:00
Daniele Teti
8aa4ab5f7b ServiceContainer (WIP) - singleton is "singleton per webmodule" 2024-03-24 16:58:08 +01:00
Daniele Teti
4ed99ab32c injector (wip) 2024-03-21 19:03:35 +01:00
Daniele Teti
662deb70f9 Merge remote-tracking branch 'origin/master' into feature_injector 2024-03-21 18:57:59 +01:00
Daniele Teti
f69583373a Injector (WIP) 2024-03-21 18:57:41 +01:00
Daniele Teti
e3c2129cb2
Update README.md 2024-03-20 18:18:56 +01:00
Daniele Teti
40555037db Merge branch 'feature_partial_ar_update' 2024-03-19 16:30:28 +01:00
Daniele Teti
78b2fa23ec Merge commit 'a33e84b988262dc6031874fda9930d25686879d7' into feature_partial_ar_update 2024-03-19 16:28:05 +01:00
Daniele Teti
a33e84b988 Squashed 'lib/swagdoc/' changes from 5734fb7c..8f81a28f
8f81a28f Merge pull request #20 from joaoduarte19/master
81d2a18b Compatibility fix for compiling for Linux on Delphi Tokyo

git-subtree-dir: lib/swagdoc
git-subtree-split: 8f81a28fcdbb0e62e1468757af8f3caa80d2ea38
2024-03-19 16:28:05 +01:00
Daniele Teti
7e3b551e11 Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/samples/react/WebApp/follow-redirects-1.15.6' into feature_partial_ar_update 2024-03-19 16:26:35 +01:00
Daniele Teti
fea6b0c273 Added support for TSQLTimeStampOffset in dataset derialization and deserialization 2024-03-19 16:05:17 +01:00
dependabot[bot]
1398ecbd83
build(deps): bump follow-redirects in /samples/react/WebApp
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-16 22:38:06 +00:00
Daniele Teti
cbc971aaf6 Any exception in TMVCWebResponse.Destroy on logged 2024-03-14 15:03:51 +01:00
Daniele Teti
17747dcf19 Completed new field options (foDoNot*) 2024-03-13 16:45:09 +01:00
Daniele Teti
ab92225d12 First implementation for foDoNotInsert and foDoNotUpdate 2024-03-13 13:00:11 +01:00
Daniele Teti
09ecb5f5a1 Updated packages 2024-03-13 12:10:37 +01:00
João Antônio Duarte
2793808115 Swagger: adding support for defining request body parameters as an array of objects.
Fix https://github.com/danieleteti/delphimvcframework/issues/713
2024-03-09 18:24:20 -03:00
Daniele Teti
ec59eaee18 Updated tests after removing ViewDatasets 2024-03-08 16:20:12 +01:00
Daniele Teti
eb8d535c9b Merge branch 'master' of https://github.com/danieleteti/delphimvcframework 2024-03-08 16:17:42 +01:00
Daniele Teti
3dc4592837 Removed ViewDataSets and all related methods from TMVCController. Use ViewData instead.
https://github.com/danieleteti/delphimvcframework/issues/729
2024-03-08 16:17:30 +01:00
Graham Murt
ec5a804576
Fixed issue where an exception is raised if KEYS() finds no matches and returns null (#733) 2024-03-08 15:26:35 +01:00
Daniele Teti
b9fcc04647 https://github.com/danieleteti/delphimvcframework/issues/728 2024-03-08 12:10:15 +01:00
Francisco Zanini
a7ea6c8369
Return 401 instead 403 when authenticating an user (#734)
Co-authored-by: Francisco Zanini <francisco@digifort.com.br>
2024-02-27 21:17:34 +01:00
Daniele Teti
833195243e Added proper handling of TimeStampWithOffset 2024-02-23 00:30:04 +01:00
Daniele Teti
02c0ae0f37 Added TEXT serializer - Improved content type handling in case of errors and no_route_found cases. 2024-02-22 19:18:34 +01:00
Daniele Teti
f9076a4732 Merge branch 'master' of https://github.com/danieleteti/delphimvcframework 2024-02-21 23:40:34 +01:00
Daniele Teti
b0e3cfc424 Added functional utils: Filter, Map, Reduce, ForEach 2024-02-21 23:40:25 +01:00
Graham Murt
0ceb7180fa
Added DeleteCacheKey method to TMVCCacheController (#731)
Deletes the specified key(s) from the Redis cache. Pattern matching can be used to delete multiple keys
2024-02-21 23:33:25 +01:00
Daniele Teti
cc5789d56e Now "NoRouteFound" error returns the correct content-type 2024-02-21 14:41:25 +01:00
Daniele Teti
49bbce0959 URLEncoding uses new TNetEncoding broader 2024-02-14 18:03:44 +01:00
Daniele Teti
f224ea7eeb Date and Time Conversion simple test 2024-02-14 18:03:01 +01:00
Daniele Teti
2be3ba60b7 Removed SimpleConsoleAppender from MOBILE platforms 2024-02-14 18:02:25 +01:00
Daniele Teti
b2ce859b4e https://github.com/danieleteti/delphimvcframework/issues/730 2024-02-12 18:11:48 +01:00
Daniele Teti
e2f63fd8d7 Improved file logger delete strategy 2024-02-06 23:42:27 +01:00
Daniele Teti
d7c9628cf1 404 doesn't raise exception anymore - it just returns 404 2024-02-05 16:40:50 +01:00
Daniele Teti
8b0d370a85 Merge commit '547fec74b9dcbf32887aad4fdd6348685c654ef2' into feature_filters
# Conflicts:
#	sources/MVCFramework.Filters.CORS.pas
#	sources/MVCFramework.pas
#	unittests/general/Several/LiveServerTestU.pas
2024-02-05 16:30:02 +01:00
Daniele Teti
d1b14eb24a Optimized pooling and cache of frequently used object in mustache and partitioning 2024-01-31 16:00:56 +01:00
Daniele Teti
d4c7e449ae Tests don't log to the console. 2024-01-29 23:41:01 +01:00
Daniele Teti
b42feddffd Less string concats in router 2024-01-25 19:32:04 +01:00
Daniele Teti
745cf3c24b ThereIsBody -> HasBody 2024-01-25 19:31:27 +01:00