-
-
Notifications
You must be signed in to change notification settings - Fork 158
Feat/serializer context decoupling #558
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
Changes from all commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
1f8a3f8
feat: started work on decoupling
88235e8
feat: add total record count
1a94a49
feat: green tests, new managers
ab78ad2
feat: changed startup
5da1a86
feat: most annoying commit of my life, rewriting dozens of controllers
494f6eb
feat: rename: QueryManager -> RequestManager, deeper seperation of co…
77a2ae9
feat: removed JsonApiContext dependency from controller, fixed namesp…
94615f8
feat: decoupled controllers
4a53c00
chore: renamed resourcegraphbuilder, took out some extensions, made …
0547fe5
chore: merge + refactor to allow for old code
afb02f2
feat: json api context decoupling mroe and more
fa954be
fix: merge with master
2be340b
chore: readded solutions
6796295
feat: upgrading to 2.2, setting contextentity in middleware
0d21254
fix: removed outdated authorization test
ab02766
fix: requestmeta tests
7246ca9
fix: some acceptance tests
c177659
fix: pagination
857b8a9
fix: total records in meta
4eec35a
feat: introduced JsonApiActionFilter
d672e8e
fix: more tests
0704cc6
feat: decoupled deserializer and serializer
5745c44
chore: remove / cleanup old serializers
b679f07
chore: remove operation services
12d43ed
tests: unit tests client/server (de)serializers
03f4b7a
chore: various edits to run tests
39742a7
fix: rm dasherized resolver
3721b7d
chore: remove JsonApiContext and corresponding interface
4ee770e
chore: merge dev-v4
09c0b54
chore: reorganize namespaces
2258b76
chore: rm old tests
13891b3
chore: rm unused document builder
7bc3c72
chore: add comments to deserialization classes
81be59f
chore: add comments
def3ebe
chore: rm IJsonApiContext from sort attr instantiation
a807d1c
feat: (re)introduced omit null value behaviour (and now omit default …
7cbd856
chore: remove more jsonapicontext references
3d1c63b
chore: minor renames, add wiki for serialization
765c1f8
chore: improve wiki
ec7ab7b
chore: wiki
891e94b
chore: wiki
fa85b32
chore: add a bunch of comments, renamed a few services
40de0d6
chore: wired up nested sparse field selection
d8e8668
chore: wired up omit behaviour
60f033c
chore: prettied some comments
bf4547a
chore: remove (almost) all references to jsonapicontext in unit tests…
013fccb
chore: removed last bits of jsonapicontext
b5530a4
fix: tests serialization passing again
5ff3842
chore: rename included query service to include query service
819b65f
chore: improve comment
50cc904
chore: improve comment
be5b652
chore: delete jsonapicontext tests
ec9753f
chore: remove space
3f8399e
test: email config
maurei a5c3cc8
chore: rename client / server (de)serializer to request/response (de)…
maurei 90f6b8c
chore: rename client / server (de)serializer to request/response (de)…
maurei 45cbc13
feat: introduce IQueryParameter
maurei efc8614
chore: move request/response (de)serializer to client/server namespac…
maurei 93cdb27
chore: update namespaces
maurei c092142
chore: rm textfile
maurei 4525d65
chore: fixing failing unit tests
maurei 93ab64b
chore: rename query services, adjustment namespace
maurei dad0901
chore: reorganised test files for serialization, added relationship p…
maurei bb495d7
feat: request relationship in response serializer
maurei fd356c5
chore: wired up response serializer in formatter layer
maurei eadf49e
feat: IGetRelationshipService now returns TResource instead of object…
maurei 9ec2137
fix: support for serving document of resource type different from req…
maurei 2f79331
chore: simplified linkbuilders
maurei 21a285d
chore: several fixes for e2e tests
maurei a89f320
fix: various e2e tests, decoupled service layer from serialization fo…
maurei e16c272
fix: inclusion edgecase
maurei 032362d
chore: fix error formatting tests
maurei d25abe7
chore: naming consistency sparsefield and include query services
maurei a9ff8cf
chore: various adjustments to make e2e test project build and pass again
maurei 7e44e57
chore: fix build various e2e tests
maurei c6b4495
chore: fix build various e2e tests
maurei de8b530
fix: e2e test Can_Include_Nested_Relationships
maurei ce5b46a
fix: e2e test Can_Patch_Entity
maurei 060da88
fix: e2e test Patch_Entity_With_HasMany_Does_Not_Include_Relationships
maurei f719c59
fix: e2e test Can_Create_Entity_With_Client_Defined_Id_If_Configured
maurei 2c33407
chore: rename base document parser and builder
maurei f3d5e45
fix: e2e test Can_Create_Guid_Identifiable_Entity_With_Client_Defined…
maurei 4f592bd
fix: unit tests various
maurei 0abb063
feat: reorganisation inheritance serialization layer
maurei c8ff443
fix: unit tests after inheritance update
maurei 6427504
fix: wire up correct resource object builder implementation in serial…
maurei 1c5517b
fix: e2e remaining CreatingDataTests
maurei 441f538
chore: refactor creatingdata tests
maurei 90ab6e6
fix: e2e test paging
maurei e5bbda2
fix: e2e controller tests
maurei 883bfee
chore: wiring up new resource object builders to dependency graph
maurei b13f55e
chore: response resource object builder unit test, restored repo and …
maurei c55672b
chore: finishing touches comments serialization
maurei bd75894
Feat/serialization wiki (#561)
wisepotato 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
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
11 changes: 6 additions & 5 deletions
11
src/Examples/JsonApiDotNetCoreExample/Controllers/PassportsController.cs
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,16 @@ | ||
using JsonApiDotNetCore.Configuration; | ||
using JsonApiDotNetCore.Controllers; | ||
using JsonApiDotNetCore.Internal.Contracts; | ||
using JsonApiDotNetCore.Services; | ||
using JsonApiDotNetCoreExample.Models; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace JsonApiDotNetCoreExample.Controllers | ||
{ | ||
public class PassportsController : JsonApiController<Passport> | ||
{ | ||
public PassportsController( | ||
IJsonApiContext jsonApiContext, | ||
IResourceService<Passport> resourceService) | ||
: base(jsonApiContext, resourceService) | ||
{ } | ||
public PassportsController(IJsonApiOptions jsonApiOptions, IResourceGraph resourceGraph, IResourceService<Passport, int> resourceService, ILoggerFactory loggerFactory = null) : base(jsonApiOptions, resourceGraph, resourceService, loggerFactory) | ||
{ | ||
} | ||
} | ||
} |
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,10 +1,11 @@ | ||
using System; | ||
using JsonApiDotNetCore.Models; | ||
|
||
namespace JsonApiDotNetCoreExample.Models | ||
{ | ||
public class User : Identifiable | ||
{ | ||
[Attr("username")] public string Username { get; set; } | ||
[Attr("password")] public string Password { get; set; } | ||
[Attr] public string Username { get; set; } | ||
[Attr] public string Password { get; set; } | ||
} | ||
} |
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
11 changes: 5 additions & 6 deletions
11
src/Examples/JsonApiDotNetCoreExample/Resources/UserResource.cs
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
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.