Merge pull request #14939 from Budibase/fix/openapi-changes

Minor OpenAPI updates
This commit is contained in:
Michael Drury 2024-11-01 16:00:28 +00:00 committed by GitHub
commit 6f1b120a05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@ export const examples = {
...user.getExamples(),
...misc.getExamples(),
...metrics.getExamples(),
...roles.getExamples(),
}
export const schemas = {

View File

@ -4,6 +4,7 @@ import queryEndpoints from "./queries"
import tableEndpoints from "./tables"
import rowEndpoints from "./rows"
import userEndpoints from "./users"
import roleEndpoints from "./roles"
import authorized from "../../../middleware/authorized"
import publicApi from "../../../middleware/publicApi"
import { paramResource, paramSubResource } from "../../../middleware/resourceId"
@ -145,6 +146,7 @@ function applyRoutes(
}
applyAdminRoutes(metricEndpoints)
applyAdminRoutes(roleEndpoints)
applyRoutes(appEndpoints, PermissionType.APP, "appId")
applyRoutes(tableEndpoints, PermissionType.TABLE, "tableId")
applyRoutes(userEndpoints, PermissionType.USER, "userId")