Commit Graph

50 Commits

Author SHA1 Message Date
rjantz2
edc8c1197e
Add the ability to use records in swagger param and response attributes. (#649) 2023-03-14 08:53:08 +01:00
Daniele Teti
fc9fffb9e7 Updated copyright message, removing some warnings 2023-01-17 08:52:26 +01:00
Daniele Teti
347c5fb2fd + Added support for API versioning in Swagger UI
+ Added Swagger API Versioning Sample (swagger_api_versioning_primer)
2022-04-01 16:49:29 +02:00
Daniele Teti
e698987a0e + Removed some HINTS/WARNINGS (thanks to the Compatibility Mantainer Mark Lobanov) 2022-01-12 11:16:49 +01:00
Daniele Teti
e7972048c8 + final version for the new SWAGGER engine (Sponsored by CENTRO SOFTWARE) 2022-01-11 15:30:40 +01:00
Daniele Teti
a8ce1bb25b + Updated copyright for 2022 2022-01-04 15:44:47 +01:00
Daniele Teti
4b635b9daf Merge branch 'master' of https://github.com/danieleteti/delphimvcframework 2021-12-31 18:06:42 +01:00
Daniele Teti
fd7f508c1b + Swagger for inherited controllers amost works 2021-12-31 18:00:54 +01:00
João Antônio Duarte
dbffee6ff6 [+] Fix https://github.com/danieleteti/delphimvcframework/issues/537 2021-12-30 17:34:52 -03:00
Daniele Teti
6837182cc3 + updated copyright header 2021-08-15 18:39:55 +02:00
João Antônio Duarte
d51e9f006b [+] Fixed Schema JSON Swagger generation for array and TList type fields.FieldName
Fix https://github.com/danieleteti/delphimvcframework/issues/502
2021-06-11 14:36:47 +02:00
João Antônio Duarte
b4b217dc91 [+] Added support for the length of string fields in the Swagger JsonSchema definition 2021-05-12 10:26:55 -03:00
João Antônio Duarte
d101ff8fcd [+] Improved Swagger Json Schema generation 2021-03-04 10:58:52 -03:00
João Antônio Duarte
0f7c682bf7 Added Swagger support for DMVCFramework nullable types. Fix #453 2020-12-29 09:49:43 -03:00
João Antônio Duarte
6bfa63b85a Added support for TGuid type in automatic mapping of path parameters in Middleware Swagger 2020-10-19 19:08:23 -03:00
João Antônio Duarte
cf834ca23b Correction to ensure that Swagger's OperationId is globally unique, when generated automatically. 2020-10-19 16:44:38 -03:00
João Antônio Duarte
ae0525afa7 Fixed JsonSchema generation of properties of types enumerated in Swagger middleware.
Fix issue #427
2020-09-29 18:55:19 -03:00
Daniele Teti
622d664989 Full UnitTest Linux compatibilities (working on) for 10.4 2020-05-25 19:34:14 +02:00
João Antônio Duarte
86c28eb661 Correction of the ordering of the Swagger URI for delphi prior to Tokyo 2020-05-12 18:25:09 -03:00
João Antônio Duarte
4aff893452 Correction in the generation of JsonSchemas of object and array type.
SwagDoc library updated.
2020-05-02 20:00:17 -03: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
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
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
Daniele Teti
8144baf40c Nulls support in MVCActiveRecord (check activerecord_showcase sample) 2020-01-06 16:49:18 +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
7222b19003 Json schemas moved to Definitions section 2020-01-03 15:48:22 -03:00
João Antônio Duarte
00bb4c6e21 Added MVCSwagIgnorePathAttribute attribute to allow hiding endpoints in swagger documentation 2019-11-27 16:27:07 -03:00
Mauricio Montuori
e088a0555e Added Login Parameters to Swagger Documentation 2019-11-18 22:49:10 -03:00
Daniel Sonda
f339b45ae2 #293 Fix error "[dcc32 Error] MVCFramework.Swagger.Commons.pas(376): E2029 Statement expected but 'VAR' found" 2019-11-18 13:46:30 -03:00
Daniele Teti
7ce87edb51 dmvcframework 3.2.0-boron 2019-11-03 16:18:24 +01:00
João Antônio Duarte
81bcb82f8f Improved methods for understanding a class as a list.
Swagger PathID renamed to OperationID. This modification had been made in commit 51b0efdba4, but had been reversed with the latest swagger changes.
2019-10-31 08:31:41 -03:00
João Antônio Duarte
74ff994fdf Minor improvements in JSONSchema generation 2019-10-30 15:07:14 -03:00
João Antônio Duarte
127025ae55 Added attribute to define authentication type of controller or method. Improvements and fixes in JSON Schema generation from entity
Added support for defining array JSON Schemas for parameters and responses
2019-10-30 12:02:30 -03:00
Daniele Teti
51b0efdba4 Swagger PathID renamed to OperationID
Moved MVCRequiresAuthenticationAttribute into MVCFramework.pas
2019-10-30 00:25:01 +01:00
João Antônio Duarte
005be2807d Added JWTDescription parameter to Swagger middleware to provide a custom description for JWT authentication. 2019-10-10 08:32:00 -03:00
Daniele Teti
510453576f Added credits to the readme
Fixed https://github.com/danieleteti/delphimvcframework/issues/278
2019-10-09 23:47:07 +02:00
Daniele Teti
0d93ace653 v3.2 (boron) RC1 2019-10-09 23:24:08 +02:00
João Antônio Duarte
f5d611e432 Bug fixes 2019-08-08 18:36:19 -03:00
João Antônio Duarte
2856063fd8 corrections in duplicate mappings 2019-08-05 11:59:35 -03:00
João Antônio Duarte
992cefe92e Added MVCSwagJsonSchemaFieldAttribute to detail field schema when extracting JsonSchema from class 2019-08-02 15:54:52 -03:00
João Antônio Duarte
85d5518ea1 Improved Swaggerdocapi example
Added JSonSchema creation from object in MVCSwagResponsesAttribute
2019-08-01 18:07:23 -03:00
João Antônio Duarte
439224da4f JWT authentication documentation improvements:
- JWT UrlSegment set to basic authentication format
2019-08-01 17:31:59 -03:00
João Antônio Duarte
69788525c2 improvements on swaggerdocapi example
Added security to methods with MVCRequiresAuthentication attribute
2019-07-31 08:40:11 -03:00
João Antônio Duarte
7d801d94a8 Security Definitions added to documentation when TMVCJWTAuthenticationMiddleware is added to Engine.
The SwaggerDocApi example is not yet functional, I will still make improvements to the example
2019-07-30 18:16:10 -03:00
João Antônio Duarte
13a88503c7 Initial commit of creation JsonSchema from Tclass 2019-07-29 17:50:12 -03:00
João Antônio Duarte
72424b4910 Added Swag Parameter description 2019-07-29 10:09:55 -03:00
João Antônio Duarte
f56768d455 Fixes in adding JsonSchema to documentation 2019-07-29 08:58:08 -03:00
João Antônio Duarte
c88a0694ae Warnings Removal
Access violation fixes
2019-07-29 08:37:31 -03:00
João Antônio Duarte
8f86df526d Added API documentation with Swagger 2019-07-27 15:23:48 -03:00