Skip to content

Commit c13e5eb

Browse files
docs: prep repo and docs for OSS release
1 parent cd14bcf commit c13e5eb

20 files changed

Lines changed: 646 additions & 1751 deletions

JsonApiToolkit/packages.lock.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,18 @@
413413
"resolved": "4.7.0",
414414
"contentHash": "ehYW0m9ptxpGWvE4zgqongBVWpSDU/JCFD4K7krxkQwSz/sFQjEXCUqpvencjy6DYDbn7Ig09R8GFffu8TtneQ=="
415415
}
416+
},
417+
"net10.0/linux-musl-x64": {
418+
"System.Security.Cryptography.Pkcs": {
419+
"type": "Transitive",
420+
"resolved": "10.0.0",
421+
"contentHash": "UPWqLSygJlFerRi9XNIuM0a1VC8gHUIufyP24xQ0sc+XimqUAEcjpOz9DhKpyDjH+5B/wO3RpC0KpkEeDj/ddg=="
422+
},
423+
"System.Security.Cryptography.ProtectedData": {
424+
"type": "Transitive",
425+
"resolved": "4.7.0",
426+
"contentHash": "ehYW0m9ptxpGWvE4zgqongBVWpSDU/JCFD4K7krxkQwSz/sFQjEXCUqpvencjy6DYDbn7Ig09R8GFffu8TtneQ=="
427+
}
416428
}
417429
}
418430
}

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</h1>
55

66
<p align="center">
7-
<em>A .NET toolkit for implementing the JSON:API specification.</em>
7+
<em>Build JSON:API endpoints in ASP.NET Core.</em>
88
</p>
99
<p align="center">
1010
<a href="https://dotnet.microsoft.com/">
@@ -26,7 +26,7 @@
2626

2727
## Description
2828

29-
JsonApiToolkit makes ASP.NET Core APIs speak the [JSON:API specification](https://jsonapi.org/). It translates standard query parameters (`filter[]`, `sort`, `include`, `fields[]`, `page[]`) into typed EF Core queries and returns spec-compliant response documents, so your controllers stay short and predictable.
29+
JsonApiToolkit translates [JSON:API](https://jsonapi.org/) query parameters (`filter[]`, `sort`, `include`, `fields[]`, `page[]`) into typed EF Core queries and shapes responses as spec-compliant documents, so your ASP.NET Core controllers stay short.
3030

3131
## Installation
3232

@@ -47,10 +47,14 @@ Derive controllers from `JsonApiController` and let `JsonApiQueryAsync` handle t
4747
```csharp
4848
public class BooksController : JsonApiController
4949
{
50+
private const string ResourceType = "book";
51+
5052
[HttpGet]
5153
[AllowedIncludes("author", "publisher")]
52-
public Task<IActionResult> GetBooks() =>
53-
JsonApiQueryAsync(_dbContext.Books.AsQueryable(), "book");
54+
public async Task<IActionResult> GetAllAsync()
55+
{
56+
return await JsonApiQueryAsync(_dbContext.Books, ResourceType);
57+
}
5458
}
5559
```
5660

SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
If you discover a security vulnerability in JsonApiToolkit, please report it privately. **Do not open a public issue.**
6+
7+
Use [GitHub private vulnerability reporting](https://github.com/intility/json-api-toolkit/security/advisories/new). If that's unavailable to you, email <security@intility.no>.
8+
9+
Please include:
10+
11+
- A description of the vulnerability and its potential impact
12+
- Steps to reproduce or a PoC
13+
- The affected version(s) of JsonApiToolkit
14+
- Any suggested mitigations

docs/.pages

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
nav:
22
- Home:
33
- Welcome: index.md
4-
- introduction.md
54
- getting-started.md
65
- Guides:
76
- querying.md
87
- build-query.md
9-
- enhanced-error-handling.md
10-
- performance.md
8+
- error-handling.md
119
- security.md
12-
- api-controller-examples.md
13-
- debugging.md
14-
- upgrade-guide.md
15-
- integrations
10+
- performance.md
11+
- recipes.md
12+
- troubleshooting.md
13+
- openapi.md
1614
- api
1715
- contributing.md
1816
- changelog.md

docs/api-controller-examples.md

Lines changed: 0 additions & 249 deletions
This file was deleted.

0 commit comments

Comments
 (0)