Skip to content

Commit b94bb1b

Browse files
author
Bart Koelman
committed
Moved resource definition docs under extensibility
1 parent 2ef8424 commit b94bb1b

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docs/usage/reading/filtering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ GET /articles?filter[caption]=tech&filter=expr:equals(caption,'cooking')) HTTP/1
119119

120120
There are multiple ways you can add custom filters:
121121

122-
1. Implementing `IResourceDefinition.OnApplyFilter` (see [here](~/usage/resources/resource-definitions.md#exclude-soft-deleted-resources)) and inject `IRequestQueryStringAccessor`, which works at all depths, but filter operations are constrained to what `FilterExpression` provides
123-
2. Implementing `IResourceDefinition.OnRegisterQueryableHandlersForQueryStringParameters` as [described previously](~/usage/resources/resource-definitions.md#custom-query-string-parameters), which enables the full range of `IQueryable<T>` functionality, but only works on primary endpoints
122+
1. Implementing `IResourceDefinition.OnApplyFilter` (see [here](~/usage/extensibility/resource-definitions.md#exclude-soft-deleted-resources)) and inject `IRequestQueryStringAccessor`, which works at all depths, but filter operations are constrained to what `FilterExpression` provides
123+
2. Implementing `IResourceDefinition.OnRegisterQueryableHandlersForQueryStringParameters` as described [here](~/usage/extensibility/resource-definitions.md#custom-query-string-parameters), which enables the full range of `IQueryable<T>` functionality, but only works on primary endpoints
124124
3. Add an implementation of `IQueryConstraintProvider` to supply additional `FilterExpression`s, which are combined with existing filters using AND operator
125125
4. Override `EntityFrameworkCoreRepository.ApplyQueryLayer` to adapt the `IQueryable<T>` expression just before execution
126126
5. Take a deep dive and plug into reader/parser/tokenizer/visitor/builder for adding additional general-purpose filter operators

docs/usage/reading/pagination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ GET /api/blogs/1/articles?include=revisions&page[size]=10,revisions:5&page[numbe
2222

2323
## Configuring Default Behavior
2424

25-
You can configure the global default behavior as [described previously](~/usage/options.md#pagination).
25+
You can configure the global default behavior as described [here](~/usage/options.md#pagination).

docs/usage/reading/sorting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ This sorts the list of blogs by their captions and included revisions by their p
5252

5353
## Default Sort
5454

55-
See the topic on [Resource Definitions](~/usage/resources/resource-definitions.md)
55+
See the topic on [Resource Definitions](~/usage/extensibility/resource-definitions.md)
5656
for overriding the default sort behavior.

docs/usage/reading/sparse-fieldset-selection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ When omitted, you'll get the included resources returned, but without full resou
4141

4242
## Overriding
4343

44-
As a developer, you can force to include and/or exclude specific fields as [described previously](~/usage/resources/resource-definitions.md).
44+
As a developer, you can force to include and/or exclude specific fields as described [here](~/usage/extensibility/resource-definitions.md).

docs/usage/resources/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
# Resource Hooks
4-
This section covers the usage of **Resource Hooks**, which is a feature of`ResourceHooksDefinition<T>`. See the [ResourceDefinition usage guide](resource-definitions.md) for a general explanation on how to set up a `JsonApiResourceDefinition<T>`. For a quick start, jump right to the [Getting started: most minimal example](#getting-started-most-minimal-example) section.
4+
This section covers the usage of **Resource Hooks**, which is a feature of`ResourceHooksDefinition<T>`. See the [ResourceDefinition usage guide](~/usage/extensibility/resource-definitions.md) for a general explanation on how to set up a `JsonApiResourceDefinition<T>`. For a quick start, jump right to the [Getting started: most minimal example](#getting-started-most-minimal-example) section.
55

66
> Note: Resource Hooks are an experimental feature and are turned off by default. They are subject to change or be replaced in a future version.
77

docs/usage/toc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# [Resources](resources/index.md)
22
## [Attributes](resources/attributes.md)
33
## [Relationships](resources/relationships.md)
4-
## [Resource Definitions](resources/resource-definitions.md)
54

65
# Reading data
76
## [Filtering](reading/filtering.md)
@@ -24,6 +23,7 @@
2423

2524
# Extensibility
2625
## [Layer Overview](extensibility/layer-overview.md)
26+
## [Resource Definitions](extensibility/resource-definitions.md)
2727
## [Controllers](extensibility/controllers.md)
2828
## [Resource Services](extensibility/services.md)
2929
## [Resource Repositories](extensibility/repositories.md)

0 commit comments

Comments
 (0)