File tree Expand file tree Collapse file tree 6 files changed +71
-90
lines changed Expand file tree Collapse file tree 6 files changed +71
-90
lines changed Original file line number Diff line number Diff line change 77 </PropertyGroup >
88
99 <PropertyGroup Condition =" $(UseLatestJsonApiDotNetCoreVersion) == 'True'" >
10- <JsonApiDotNetCoreVersion >5.7.2-master-01199 </JsonApiDotNetCoreVersion >
10+ <JsonApiDotNetCoreVersion >5.7.2-master-01204 </JsonApiDotNetCoreVersion >
1111 </PropertyGroup >
1212
1313 <PropertyGroup Condition =" $(UseLatestJsonApiDotNetCoreVersion) != 'True'" >
Original file line number Diff line number Diff line change @@ -8,10 +8,40 @@ GET {{HostAddress}}/PriceGroup?include=products.unitGroup.units
88
99GET {{HostAddress }}/PriceGroup?include=products
1010
11- ### Sparse fieldset on subset of derived types
11+ ### Sparse fieldset on derived type Bundle
12+
13+ GET {{HostAddress }}/PriceGroup?include=products.unitGroup.units&fields[Bundle]=isTaxable
14+
15+ ### Sparse fieldset on derived type Addon
16+
17+ GET {{HostAddress }}/PriceGroup?include=products.unitGroup.units&fields[Addon]=trialDuration,allowsCustomEndDate
18+
19+ ### Sparse fieldset on subset of derived types [SLOW]
1220
1321GET {{HostAddress }}/PriceGroup?include=products.unitGroup.units&fields[Addon]=trialDuration,allowsCustomEndDate&fields[Bundle]=isTaxable
1422
1523### Non-default page size on top-level include
1624
1725GET {{HostAddress }}/PriceGroup?include=products.unitGroup.units&page[size]=products:5
26+
27+ ### Filter on type hierarchy
28+
29+ GET {{HostAddress }}/PriceGroup?include=products&filter[products]=equals(id,'FFFFFFFF-0000-0000-0000-FFFFFFFFFFFF')
30+
31+ ### Filter after type hierarchy [HAS NEVER WORKED]
32+
33+ GET {{HostAddress }}/PriceGroup?include=products.unitGroup.units&filter[products.unitGroup.units]=equals(id,'FFFFFFFF-0000-0000-0000-FFFFFFFFFFFF')
34+
35+ ### ProductBase
36+ ### : CommonProduct
37+ ### : ProductBundle = "Bundle"
38+ ### : StandaloneProduct
39+ ### : Product
40+ ### : ProductAddon = "Addon"
41+ ### : ProductGroup
42+ ###
43+ ### HasOne: UnitGroup
44+ ### HasMany: Units
45+ ###
46+ ### PriceGroup
47+ ### HasMany: Products
Original file line number Diff line number Diff line change 2121 {
2222 [ "Logging:LogLevel:JsonApiDotNetCore.Repositories" ] = "Debug"
2323 } ) ;
24-
25- builder . Services . AddTransient < IQueryableBuilder , PruningQueryableBuilder > ( ) ;
2624}
2725else
2826{
4341
4442await app . RunDbMigrations ( ) ;
4543
46- await app . RunAsync ( ) ;
44+ await app . RunAsync ( ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #nullable enable
2+ using System ;
3+ using JsonApiBugReport . Data ;
4+ using JsonApiDotNetCore . Configuration ;
5+ using JsonApiDotNetCore . Queries . Expressions ;
6+ using JsonApiDotNetCore . Resources ;
7+
8+ namespace JsonApiBugReport . ResourceDefinitions ;
9+
10+ public sealed class UnitDefinition ( IResourceGraph resourceGraph )
11+ : JsonApiResourceDefinition < Unit , Guid > ( resourceGraph )
12+ {
13+ private static readonly PaginationExpression NoPagination = new ( PageNumber . ValueOne , null ) ;
14+
15+ public override PaginationExpression OnApplyPagination ( PaginationExpression ? existingPagination )
16+ {
17+ return NoPagination ;
18+ }
19+ }
Original file line number Diff line number Diff line change 1+ using JsonApiBugReport . Data ;
2+ using JsonApiDotNetCore . Configuration ;
3+ using JsonApiDotNetCore . Queries . Expressions ;
4+ using JsonApiDotNetCore . Resources ;
5+
6+ #nullable enable
7+
8+ namespace JsonApiBugReport . ResourceDefinitions ;
9+
10+ public sealed class UnitGroupDefinition ( IResourceGraph resourceGraph )
11+ : JsonApiResourceDefinition < UnitGroup , int > ( resourceGraph )
12+ {
13+ private static readonly PaginationExpression NoPagination = new ( PageNumber . ValueOne , null ) ;
14+
15+ public override PaginationExpression OnApplyPagination ( PaginationExpression ? existingPagination )
16+ {
17+ return NoPagination ;
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments