Skip to content

Commit

Permalink
feat: Accept JSON bodies in all generated endpoints (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 authored Oct 10, 2024
1 parent a87a28d commit 8b6e6ce
Show file tree
Hide file tree
Showing 50 changed files with 2,871 additions and 372 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 5.1.0

- feat: All Coalesce-generated endpoints that accept a formdata body now also accept a JSON body. Existing formdata endpoints remain unchanged.
- feat: Automatically produce user-friendly response messages in behaviors for Save and Delete operations that fail due to a violation of a SQL Server foreign key or unique constraint. This behavior can be controlled with the `DetailedEfConstraintExceptionMessages` setting in `.AddCoalesce(c => c.Configure(o => { ... }))`, or by overriding `StandardBehaviors.GetExceptionResult`. This is not a substitute for adding proper validation or other handling of related entities - it only exists to provide a better user experience in cases where the developer has forgotten to handle these situations. This behavior does respect Coalesce's security model and won't produce descriptions of types or values that the user is not allowed to see. (#468)
- feat: Error responses now include inner exception messages when `DetailedExceptionMessages` is enabled. (#468)
- feat(c-admin-table): Clicking a row takes you to the details page (#465)
Expand Down
3 changes: 1 addition & 2 deletions coalesce-vue3.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"webProject": {
"projectFile": "./playground/Coalesce.Web.Vue3/Coalesce.Web.Vue3.csproj",
"framework": "net8.0"
"projectFile": "./playground/Coalesce.Web.Vue3/Coalesce.Web.Vue3.csproj"
},
"dataProject": {
"projectFile": "./playground/Coalesce.Domain/Coalesce.Domain.csproj",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

274 changes: 246 additions & 28 deletions playground/Coalesce.Web.Vue2/Api/Generated/CaseController.g.cs

Large diffs are not rendered by default.

68 changes: 60 additions & 8 deletions playground/Coalesce.Web.Vue2/Api/Generated/CaseDtoController.g.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8b6e6ce

Please sign in to comment.