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 7
7
</PropertyGroup >
8
8
9
9
<PropertyGroup Condition =" $(UseLatestJsonApiDotNetCoreVersion) == 'True'" >
10
- <JsonApiDotNetCoreVersion >5.7.2-master-01199 </JsonApiDotNetCoreVersion >
10
+ <JsonApiDotNetCoreVersion >5.7.2-master-01204 </JsonApiDotNetCoreVersion >
11
11
</PropertyGroup >
12
12
13
13
<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
8
8
9
9
GET {{HostAddress }}/PriceGroup?include=products
10
10
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]
12
20
13
21
GET {{HostAddress }}/PriceGroup?include=products.unitGroup.units&fields[Addon]=trialDuration,allowsCustomEndDate&fields[Bundle]=isTaxable
14
22
15
23
### Non-default page size on top-level include
16
24
17
25
GET {{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 21
21
{
22
22
[ "Logging:LogLevel:JsonApiDotNetCore.Repositories" ] = "Debug"
23
23
} ) ;
24
-
25
- builder . Services . AddTransient < IQueryableBuilder , PruningQueryableBuilder > ( ) ;
26
24
}
27
25
else
28
26
{
43
41
44
42
await app . RunDbMigrations ( ) ;
45
43
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