You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/resources/hooks.md
+83-85Lines changed: 83 additions & 85 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
2
2
# Resource Hooks
3
-
This section covers the usage of **Resource Hooks**, which is a feature of`ResourceDefinition<T>`. See the [ResourceDefinition usage guide](resource-definitions.md) for a general explanation on how to set up a `ResourceDefinition<T>`.
3
+
This section covers the usage of **Resource Hooks**, which is a feature of`ResourceDefinition<T>`. See the [ResourceDefinition usage guide](resource-definitions.md) for a general explanation on how to set up a `ResourceDefinition<T>`. For a quick start, jump right to the [Getting started: most minimal example](#getting-started-most-minimal-example) section.
4
4
5
5
By implementing resource hooks on a `ResourceDefintion<T>`, it is possible to intercept the execution of the **Resource Service Layer** (RSL) in various ways. This enables the developer to conveniently define business logic without having to override the RSL. It can be used to implement e.g.
6
6
* Authorization
@@ -11,19 +11,18 @@ By implementing resource hooks on a `ResourceDefintion<T>`, it is possible to in
11
11
This usage guide covers the following sections
12
12
1.[**Semantics: pipelines, actions and hooks**](#semantics-pipelines-actions-and-hooks).
13
13
Understanding the semantics will be helpful in identifying which hooks on `ResourceDefinition<T>` you need to implement for your use-case.
A table overview of all pipelines and involved hooks
27
26
28
27
# 1. Semantics: pipelines, actions and hooks
29
28
@@ -91,84 +90,7 @@ Any return content can be intercepted and transformed as desired by implementing
91
90
<br><br>
92
91
For an overview of all pipelines, hooks and actions, see the table below, and for more detailed information about the available hooks, see the [IResourceHookContainer<T>](https://github.com/json-api-dotnet/JsonApiDotNetCore/blob/ab1f96d8255532461da47d290c5440b9e7e6a4a5/src/JsonApiDotNetCore/Hooks/IResourceHookContainer.cs) interface.
93
92
94
-
# 2. Hook execution overview
95
-
96
-
97
-
This table below shows the involved hooks per pipeline.
0 commit comments