Skip to content

Commit 85363ef

Browse files
mcollinagithub-actions[bot]
authored andcommitted
[automated commit] Bump docs to versions 3.41.0, 2.75.2, 1.53.4
1 parent 8dda2ab commit 85363ef

4 files changed

Lines changed: 44 additions & 18 deletions

File tree

docs/guides/logger/services/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"react": "^19.1.0",
1313
"react-dom": "^19.1.0",
14-
"next": "16.1.5",
14+
"next": "16.1.7",
1515
"@platformatic/next": "^2.61.0"
1616
}
1717
}

docs/reference/db/configuration.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,19 @@ postgres://user:password@my-database:5432/db-name
247247
}
248248
```
249249

250+
You can disable all reverse relationship and FK-navigation routes (e.g. `GET /owners/{id}/posts`, `GET /posts/{id}/owner`) with a single option:
251+
252+
```json title="Example Object"
253+
{
254+
"db": {
255+
...
256+
"openapi": {
257+
"ignoreAllReverseRoutes": true
258+
}
259+
}
260+
}
261+
```
262+
250263
You can explicitly identify tables to build an entity, **however all other tables will be ignored**:
251264

252265
```json title="Example Object"

docs/reference/sql-openapi/ignore.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,16 @@ app.register(require('@platformatic/sql-openapi'), {
4646
})
4747
```
4848

49-
Here the routes for `categories` and `posts` will be ignored and not available in the API.
49+
Here the routes for `categories` and `posts` will be ignored and not available in the API.
50+
51+
## Ignoring All Reverse Relationship Routes
52+
53+
If you want to disable all relationship-navigation routes at once (both reverse relationships like `GET /owners/{id}/posts` and FK-navigation routes like `GET /posts/{id}/owner`), use `ignoreAllReverseRoutes`:
54+
55+
```js
56+
app.register(require('@platformatic/sql-openapi'), {
57+
ignoreAllReverseRoutes: true
58+
})
59+
```
60+
61+
This is equivalent to manually adding every relationship route to `ignoreRoutes`. Regular CRUD routes (GET, POST, PUT, DELETE on base entities) are not affected.

package-lock.json

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)