-
-
Notifications
You must be signed in to change notification settings - Fork 158
Write callbacks #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Write callbacks #977
Changes from 14 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
c325200
Simpler registration for resource definitions
940db8c
Basic wire-up for write callbacks
89da7e3
Added tests for archiving
1438db2
Cleanup
ae2c63a
Improved support for soft-deletion
0715d0e
Added tests for multi-tenancy
bf1072b
Refactor callback wire-ups, adds support for relationships
149af4d
Wire-up callbacks for serialization
f297212
Moved existing ResourceDefinition tests into subfolder
bc1de6a
Added tests for Transactional Outbox pattern and fire-and-forget
f34ba32
Added tests for serialization callbacks
395886e
Moved existing ModelState validation tests into subfolder
6f6d1ac
Added stage transition tests
723d325
Corrected method order
2ef8424
Addressed review feedback
b94bb1b
Moved resource definition docs under extensibility
d929bcb
Update docs on layer overview and resource definitions.
ef614bc
Added documentation with diagrams on resource definition write callba…
f30927c
Corrected doc-comments
c4e5dfc
Reworded side-load-and-attach
e8e7026
Added Get Relationship tests
3bd29b5
Addressed review feedback
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,39 @@ | ||
namespace JsonApiDotNetCore.Middleware | ||
{ | ||
/// <summary> | ||
/// Lists the functional operation kinds from an atomic:operations request. | ||
/// Lists the functional operation kinds from a resource request or an atomic:operations request. | ||
/// </summary> | ||
public enum OperationKind | ||
{ | ||
/// <summary> | ||
/// Create a new resource with attributes, relationships or both. | ||
/// </summary> | ||
CreateResource, | ||
|
||
/// <summary> | ||
/// Update the attributes and/or relationships of an existing resource. Only the values of sent attributes are replaced. And only the values of sent | ||
/// relationships are replaced. | ||
/// </summary> | ||
UpdateResource, | ||
|
||
/// <summary> | ||
/// Delete an existing resource. | ||
/// </summary> | ||
DeleteResource, | ||
|
||
/// <summary> | ||
/// Perform a complete replacement of a relationship on an existing resource. | ||
/// </summary> | ||
SetRelationship, | ||
|
||
/// <summary> | ||
/// Add resources to a to-many relationship. | ||
/// </summary> | ||
AddToRelationship, | ||
|
||
/// <summary> | ||
/// Remove resources from a to-many relationship. | ||
/// </summary> | ||
RemoveFromRelationship | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.