We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09879e9 commit fd7f903Copy full SHA for fd7f903
README.md
@@ -14,8 +14,13 @@ services.AddDbContext<ApplicationDbContext>(options =>
14
ServiceLifetime.Transient);
15
16
services.AddJsonApi(config => {
17
- config.UseContext<ApplicationDbContext>();
18
config.SetDefaultNamespace("api/v1");
+ config.UseContext<ApplicationDbContext>();
19
+ config.DefineResourceMapping(dictionary =>
20
+ {
21
+ dictionary.Add(typeof(TodoItem), typeof(TodoItemResource));
22
+ dictionary.Add(typeof(Person), typeof(PersonResource));
23
+ });
24
});
25
```
26
0 commit comments