-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit 9380b76
author
authoredBart Koelman
Rewrite of LinkBuilder to use ASP.NET Core routing to render links (#987)
Rewrite of LinkBuilder to use ASP.NET Core routing to render links. The limitation that custom routes must end in the public resource name no longer applies.
- Fixed: Resource-level Self links in atomic:operations responses are now hidden when no controller exists for the resource type.
- Fixed: For determining which links to render, settings from primary resource were used on secondary endpoints. For example, if you configure Customer to show all links, but Orders no show none, then /customer/1/orders would show all links.
- Optimization: Compound `page[size]` parameter value (example: `10,articles:5`) is calculated once, instead of again for each pagination link.
- Deprecated: `IJsonApiRequest.BasePath`. This information is no longer needed, but we still set it for back-compat.
- Added support for non-standard route parameters in links, for example: `[DisableRoutingConvention, Route("{shopName}/products")]`1 parent 64f3b83 commit 9380b76
File tree
33 files changed
+623
-255
lines changed- docs/usage
- src/JsonApiDotNetCore
- Middleware
- Serialization
- Building
- Objects
- test/JsonApiDotNetCoreExampleTests
- IntegrationTests
- AtomicOperations
- Creating
- Links
- Mixed
- Updating/Resources
- HostingInIIS
- Links
- MultiTenancy
- UnitTests/Links
33 files changed
+623
-255
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 | - | ||
65 | + | ||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 | - | ||
77 | - | ||
78 | 76 |
| |
79 | 77 |
| |
80 | 78 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
11 | + | ||
12 | 12 |
| |
13 | 13 |
| |
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
14 | 19 |
| |
15 | 20 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
1 | 2 |
| |
2 | 3 |
| |
3 | 4 |
| |
| |||
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
26 | + | ||
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 | + | ||
47 | 48 |
| |
49 | + | ||
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
|
Lines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | + | ||
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
61 | 78 |
| |
62 | 79 |
| |
63 | 80 |
| |
| |||
78 | 95 |
| |
79 | 96 |
| |
80 | 97 |
| |
98 | + | ||
81 | 99 |
| |
82 | 100 |
| |
83 | 101 |
| |
| |||
117 | 135 |
| |
118 | 136 |
| |
119 | 137 |
| |
120 | - | ||
121 | - | ||
122 | - | ||
138 | + | ||
123 | 139 |
| |
124 | 140 |
| |
125 | 141 |
| |
| |||
131 | 147 |
| |
132 | 148 |
| |
133 | 149 |
| |
134 | - | ||
135 | - | ||
136 | - | ||
150 | + | ||
137 | 151 |
| |
138 | 152 |
| |
139 | 153 |
| |
|
0 commit comments