Commit Graph

684 Commits

Author SHA1 Message Date
Daniele Teti
b642900431 Merge branch 'master' of https://github.com/danieleteti/delphimvcframework
# Conflicts:
#	unittests/general/TestServer/WebModuleUnit.pas
2020-05-02 16:40:47 +02:00
Daniele Teti
ddc5f4d97d JSON-RPC named parameters support 2020-05-02 16:39:32 +02:00
João Antônio Duarte
fdf4507482 Change in swagger middleware to keep JWT authentication endpoint always on top 2020-04-30 20:51:41 -03:00
João Antônio Duarte
f8f775c5a9 Compression middleware changed to allow compression of static files 2020-04-30 17:53:53 -03:00
Daniele Teti
c9e3525b2a New MVCFramework.Middleware.ActiveRecord 2020-04-30 17:43:49 +02:00
Daniele Teti
b259b72153 Removed debug logs 2020-04-30 11:27:27 +02:00
Daniele Teti
ad339ab8ba Added SPAWebAppSupport parameter (default: true) to TMVCStaticFilesMiddleware 2020-04-30 11:26:32 +02:00
Daniele Teti
8fd7e92c20 Updated code templates for IDE expert 2020-04-29 18:45:01 +02:00
Daniele Teti
89d723fbde Added new sample to show hot to use StaticFilesMiddleware in SPA web applications. Added ability to don't load system controller using Config[TMVCConfigKey.LoadSystemControllers] := 'false'; in the configuration block. 2020-04-29 17:53:29 +02:00
João Antônio Duarte
f324701a3c Merge remote-tracking branch 'upstream/master' into middleware_staticfiles 2020-04-28 21:12:55 -03:00
João Antônio Duarte
96c3b9cc8f OnAfterRouting method inserted in TMVCETagMiddleware 2020-04-28 21:09:14 -03:00
João Antônio Duarte
e71c0ff02f Merge branch 'middleware_etag' into middleware_staticfiles 2020-04-28 21:00:41 -03:00
João Antônio Duarte
28de11cabb OnAfterRouting method inserted in middlewares 2020-04-28 20:57:29 -03:00
João Antônio Duarte
fafb73823a Change to OnAfterRouting to be executed after exception handling 2020-04-28 19:08:54 -03:00
Waldek Gorajek
6e51d6ae55 Added serializer for Spring4D TNullableDouble 2020-04-28 12:37:21 +02:00
João Antônio Duarte
87db1f09a5 Added OnAfterRouting method to IMVCMiddleware 2020-04-27 20:36:45 -03:00
Daniele Teti
91c594cc4d Merge branch 'master' of https://github.com/danieleteti/delphimvcframework 2020-04-27 17:22:55 +02:00
Daniele Teti
96f624f8fb Updated LoggerPro package 2020-04-27 17:18:16 +02:00
João Antônio Duarte
00f252852e NEXTGEN compilation fix 2020-04-27 11:25:50 -03:00
João Antônio Duarte
749657552e Merge remote-tracking branch 'upstream/master' into middleware_staticfiles 2020-04-26 17:56:20 -03:00
Daniele Teti
c46485f9d3 Added support for MIME: csv, text, jpe, svg, svgz, gif 2020-04-25 15:24:08 +02:00
João Antônio Duarte
7dde0cf7d9 Correction of exception raised when middleware tried to map url with invalid characters as path to a file 2020-04-24 21:55:36 -03:00
João Antônio Duarte
faa892df7f Settings for static files removed from the TMVCEngine core 2020-04-24 21:20:46 -03:00
João Antônio Duarte
e029e52907 Settings of static files added as parameters in the middleware constructor 2020-04-24 20:48:07 -03:00
João Antônio Duarte
ebcda178ff Merge remote-tracking branch 'upstream/master' into middleware_staticfiles 2020-04-24 19:13:44 -03:00
João Antônio Duarte
2aeb322f55 Merge remote-tracking branch 'upstream/master' into middleware_etag 2020-04-24 15:07:29 -03:00
Daniele Teti
1e4d374101 Comepleted ObjectDict support - fixed ncCamelCase mangling 2020-04-24 16:36:18 +02:00
Daniele Teti
ba2be8f7e1 Updated some samples 2020-04-24 14:48:30 +02:00
João Antônio Duarte
2e105ec59f The static file server that was at the core of TMVCEngine has been moved to TMVCStaticFilesMiddleware middleware 2020-04-23 21:48:39 -03:00
João Antônio Duarte
b4272f98f2 Merge remote-tracking branch 'upstream/master' into middleware_etag 2020-04-23 19:47:02 -03:00
Daniele Teti
e0fb181d19 Updated ArticlesCrud sample to use ObjectDict
Improved DataSetUtils
2020-04-23 17:20:53 +02:00
João Antônio Duarte
0186b0c4b2 Middleware changed to generate ETag header of static files 2020-04-22 19:18:39 -03:00
João Antônio Duarte
5a000d42e8 Added ETag Middleware 2020-04-22 16:45:56 -03:00
Daniele Teti
dd64ab4c49 Completed ObjectDict tests 2020-04-21 17:04:04 +02:00
Daniele Teti
c075b1fbca Now ObjectDict() returns an interface - allows easily pattern for rendering complex objects 2020-04-20 18:32:46 +02:00
Daniele Teti
d261edb622 Added ncPascalCase, improved ncCamelCase support, improved DataSet Serialization 2020-04-20 17:56:17 +02:00
Daniele Teti
08f01e6633 https://github.com/danieleteti/delphimvcframework/issues/366 2020-04-19 12:23:55 +02:00
Daniele Teti
f853b362b3 https://github.com/danieleteti/delphimvcframework/issues/362 2020-04-18 23:32:24 +02:00
Daniele Teti
fc525e9d97 https://github.com/danieleteti/delphimvcframework/issues/363 2020-04-18 15:04:27 +02:00
Daniele Teti
72fbb7d8f2 v3_2_0_boron_RC6 2020-04-14 13:17:09 +02:00
Daniele Teti
26b82080d9 https://github.com/danieleteti/delphimvcframework/issues/330 2020-04-13 16:22:15 +02:00
Daniele Teti
e437d33434 https://github.com/danieleteti/delphimvcframework/issues/355 2020-04-12 12:38:00 +02:00
Vitao-Jose
26a507748b
Update MVCFramework.Controllers.CacheController.pas
Line 191 - change 
if not String.IsNullOrWhiteSpace(lConnection) then 
by 
if not String.IsNullOrWhiteSpace(lKeyAuth) then
2020-04-11 01:11:34 -03:00
Daniele Teti
bddca2f9b2 Merge branch 'master' of https://github.com/danieleteti/delphimvcframework 2020-04-09 17:01:51 +02:00
Daniele Teti
3c2c7e600e Better exception messages for deserialization errors 2020-04-09 17:01:33 +02:00
João Antônio Duarte
91f2bebcfc
Added support for guid path parameters (#353) 2020-04-09 11:04:45 -03:00
Daniele Teti
0a80e649b7 SessionCustomData and Context.LoggedUser are filled also for public endpoint if the request contains a valid jwt 2020-04-09 13:02:08 +02:00
Daniele Teti
e56fb272a9 https://github.com/danieleteti/delphimvcframework/issues/348
Just for PostgreSQL
2020-04-08 18:04:45 +02:00
Daniele Teti
18e988d604 https://github.com/danieleteti/delphimvcframework/issues/356 2020-04-08 13:00:32 +02:00
Daniele Teti
4a1ef47bd3 "404 Not Found" exceptions now contains the requested URL (as in the log) 2020-04-07 10:37:33 +02:00
Daniele Teti
36ca9d43dc https://github.com/danieleteti/delphimvcframework/issues/337 2020-04-03 11:56:14 +02:00
Daniele Teti
f99590f50f https://github.com/danieleteti/delphimvcframework/issues/350 2020-04-02 19:26:04 +02:00
Daniele Teti
2273c88b00 Added MediaTypes TMVCMediaType.IMAGE_X_ICON 2020-04-02 15:28:06 +02:00
Sandro Borges
1052769b54 Added authentication key for redis connection 2020-04-02 09:41:33 -03:00
Daniele Teti
d577221a71 Now ActiveRecord PrimaryKey can be string, nullablestring, integer, nullableinteger, int64, nullableint64 2020-03-31 16:23:22 +02:00
Daniele Teti
841edeb114 https://github.com/danieleteti/delphimvcframework/issues/349
https://github.com/danieleteti/delphimvcframework/issues/38
2020-03-31 00:47:35 +02:00
Daniele Teti
1fd7740048 Added JSONRPC Hooks - Renamed RenderXXX Methods 2020-03-30 13:30:45 +02:00
Daniele Teti
5fb572ca63 Support for non autogenerated primary keys 2020-03-27 00:37:28 +01:00
Daniele Teti
d00f8e6206 Improved JSONRPC Exceptions 2020-03-25 22:27:29 +01:00
Daniele Teti
99664f141b Refactoring of some internals structures of TMVCActiveRecord 2020-03-25 11:35:25 +01:00
Daniele Teti
f4e27a2179 Added JSONRPC HOOKS 2020-03-24 17:55:25 +01:00
João Antônio Duarte
e844b7a42e Correction of the JWT authentication endpoint definition in TMVCMiddlewareSwagger. Username and passoword definition headers cannot be required. 2020-03-23 20:42:58 -03:00
Daniele Teti
71b6108149 Improved deserialization in cases of derived properties 2020-03-23 18:51:57 +01:00
Daniele Teti
6e1978791f First public version of TMVCAPIBinder 2020-03-20 23:08:45 +01:00
João Antônio Duarte
cd162c5977 Exception handling when receiving value that does not exist in the mapped values.
Search for mapped values case insensitive
2020-03-13 11:58:04 -03:00
João Antônio Duarte
12fcc9b8b4 Warnings removal 2020-03-12 17:19:30 -03:00
Daniele Teti
406ee139fd Renamed "MVCEnumSerializationTypeAttribute" to "MVCEnumSerializationAttribute"
Added "DataTypeName" in MVCActiveRecord to better use specific RDBMS types (e.g. JSON / JSONP data type in PostgreSQL)
2020-03-12 20:37:48 +01:00
João Antônio Duarte
25d2a909ef Added ability to serialize/desserialize types enumerated by an array of mapped values 2020-03-12 14:24:20 -03:00
Andrea Ciotti
2bb620bec2 DataSetToJsonObject serializer: Added TFieldType.ftWord to the list of types to be serialized 2020-03-11 09:03:30 +01:00
Daniele Teti
36c2a2201e Nullable Templates 2020-03-11 01:35:31 +01:00
Daniele Teti
2c6552276e https://github.com/danieleteti/delphimvcframework/issues/336 2020-03-08 19:35:17 +01:00
Daniele Teti
ab2c92c26f https://github.com/danieleteti/delphimvcframework/issues/338 2020-03-08 17:54:10 +01:00
Daniele Teti
ac9f3bc7f6 FIX https://github.com/danieleteti/delphimvcframework/issues/334 2020-03-05 18:34:00 +01:00
Daniele Teti
f99aa89fda Added more characters in URL_MAPPED_PARAMS_ALLOWED_CHARS = ' àèéùòì''"@\[\]\{\}\(\)\=;&#\.:!\_\/,%\w\d\x2D\x3A';
Added more unit tests
2020-03-04 19:56:01 +01:00
Daniele Teti
cb46414e4d https://github.com/danieleteti/delphimvcframework/issues/321 2020-02-28 18:33:28 +01:00
Daniele Teti
70a5b2c306 Updated README.md 2020-02-26 13:25:00 +01:00
Daniele Teti
992262d152 Added "OnRouterLog" configuration - Fixed packages to include "MVCFramework.Nullables.pas" 2020-02-26 13:10:41 +01:00
Andrea Ciotti
13571aa584 Configurable log for requests 2020-02-24 10:37:37 +01:00
Daniele Teti
c919faa1e3
Merge pull request #328 from joaoduarte19/rql_bugfix
Rql bugfix
2020-02-22 16:51:29 +01:00
João Antônio Duarte
3218492a6c Correction when converting TField ftGUID to property TGUID in Delphi 10.1 Berlin
Removal of warnings in Delphi 10.1 Berlin
2020-02-21 16:14:15 -03:00
João Antônio Duarte
28b8f02c43 Merge remote-tracking branch 'upstream/master' into rql_bugfix 2020-02-13 20:15:55 -03:00
João Antônio Duarte
e83fcac362 Fixed error in the RQL compiler when passing a string containing the apostrophe (') symbol in the "contains" and "in" operators 2020-02-13 20:15:25 -03:00
Daniele Teti
92dcbd8b40 FIXED a Vulnerability bug which affects some deployment configurations. 2020-02-13 23:33:30 +01:00
Daniele Teti
c36cd13988 3.2.0-boron-RC4 2020-02-05 23:46:38 +01:00
Daniele Teti
4a78322aef Improvement is Nullable primary keys. Added method "Store" 2020-02-03 13:19:55 +01:00
Daniele Teti
42cf51b595 All serialization/deserialization unittests pass for nullables!! :-) 2020-02-03 12:11:42 +01:00
Daniele Teti
3388354743 Serialization support for all the types in MVCFramework.Nullables 2020-02-03 10:51:40 +01:00
Daniele Teti
3233ea123f Fixed a mleak in caso of disconnection while the request is running (https://github.com/danieleteti/delphimvcframework/issues/323) 2020-01-24 10:09:14 +01:00
Daniele Teti
23b3826f02 Fixed WineCellar* samples (thank you Stephen) 2020-01-08 20:34:02 +01:00
Daniele Teti
4eb5444cb6 Added sequence support fo mvcactiverecord (required for interbase, optional for other dbms) 2020-01-08 15:30:10 +01:00
Daniele Teti
8144baf40c Nulls support in MVCActiveRecord (check activerecord_showcase sample) 2020-01-06 16:49:18 +01:00
Daniele Teti
b097121ee7 First working version of nullable support for mvcactiverecord 2020-01-04 12:54:38 +01:00
João Antônio Duarte
64d9936784 Added EnumValues parameter to MVCSwagParamAttribute attribute. When adding an enum, swagger will display a list of possible values to select 2020-01-03 18:08:47 -03:00
João Antônio Duarte
996c1344c7 improved path ordering
Added DefaultValue parameter to MVCSwagParamAttribute attribute
2020-01-03 17:47:01 -03:00
João Antônio Duarte
4c60e67a3e Added ordering of paths by tags 2020-01-03 16:49:53 -03:00
João Antônio Duarte
7222b19003 Json schemas moved to Definitions section 2020-01-03 15:48:22 -03:00
Daniele Teti
7c89df545d Middleware Trace 2019-12-23 18:37:28 +01:00
Daniele Teti
e2f6bd76d4 https://github.com/danieleteti/delphimvcframework/issues/312 2019-12-23 18:35:21 +01:00
Daniele Teti
09c7634001
Merge pull request #314 from landrix/master
SSL-server-support for TMVCListener
2019-12-23 17:34:07 +01:00
Daniele Teti
519d607b90 Added a NOTE field in all ActiveRecordDB - the sample has been updated as well 2019-12-23 10:35:36 +01:00