Skip to content

Commit 8462e75

Browse files
committed
docs(readme): document Request Meta
1 parent 340ee44 commit 8462e75

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ Resources can be sorted by an attribute:
326326

327327
### Meta
328328

329+
Meta objects can be assigned in two ways:
330+
- Resource meta
331+
- Request Meta
332+
329333
Resource meta can be defined by implementing `IHasMeta` on the model class:
330334

331335
```csharp
@@ -343,6 +347,9 @@ public class Person : Identifiable<int>, IHasMeta
343347
}
344348
```
345349

350+
Request Meta can be added by injecting a service that implements `IRequestMeta`.
351+
In the event of a key collision, the Request Meta will take precendence.
352+
346353
### Client Generated Ids
347354

348355
By default, the server will respond with a `403 Forbidden` HTTP Status Code if a `POST` request is

0 commit comments

Comments
 (0)