endpoint update page role settings

This commit is contained in:
renaldybrada
2026-02-25 14:32:22 +07:00
parent a22a7a1aeb
commit 42267aa1af
8 changed files with 332 additions and 4 deletions
+71
View File
@@ -160,6 +160,44 @@
}
}
}
},
"put": {
"tags": [
"Access Role"
],
"summary": "Update Role Page Settings",
"parameters": [
{
"type": "string",
"description": "id role",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Body Update Role Page",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/access.UpdateRolePageRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/shared.BaseResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/access/sync-keycloak-role": {
@@ -972,6 +1010,10 @@
"definitions": {
"access.AccessPage": {
"type": "object",
"required": [
"id",
"is_active"
],
"properties": {
"id": {
"type": "string"
@@ -984,11 +1026,17 @@
},
"parent_id": {
"type": "string"
},
"sort": {
"type": "integer"
}
}
},
"access.DetailRolePageResponse": {
"type": "object",
"required": [
"id"
],
"properties": {
"access_page": {
"type": "array",
@@ -1060,6 +1108,29 @@
}
}
},
"access.UpdateRolePageRequest": {
"type": "object",
"required": [
"id"
],
"properties": {
"access_page": {
"type": "array",
"items": {
"$ref": "#/definitions/access.AccessPage"
}
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "boolean"
}
}
},
"access.UserRoleResponse": {
"type": "object",
"properties": {