fixing detail role settings docs

This commit is contained in:
renaldybrada
2026-02-25 13:45:30 +07:00
parent d335b70b37
commit a22a7a1aeb
4 changed files with 83 additions and 1 deletions
+31
View File
@@ -137,6 +137,37 @@ const docTemplate = `{
}
}
},
"/access/role-permission/{id}": {
"get": {
"tags": [
"Access Role"
],
"summary": "Detail Role Page Settings",
"parameters": [
{
"type": "string",
"description": "id role",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/access.DetailRolePageResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/access/sync-keycloak-role": {
"post": {
"tags": [
+31
View File
@@ -131,6 +131,37 @@
}
}
},
"/access/role-permission/{id}": {
"get": {
"tags": [
"Access Role"
],
"summary": "Detail Role Page Settings",
"parameters": [
{
"type": "string",
"description": "id role",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/access.DetailRolePageResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/access/sync-keycloak-role": {
"post": {
"tags": [
+20
View File
@@ -601,6 +601,26 @@ paths:
summary: Get List Role Page Settings
tags:
- Access Role
/access/role-permission/{id}:
get:
parameters:
- description: id role
in: path
name: id
required: true
type: string
responses:
"200":
description: OK
schema:
$ref: '#/definitions/access.DetailRolePageResponse'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/shared.BaseErrorResponse'
summary: Detail Role Page Settings
tags:
- Access Role
/access/sync-keycloak-role:
post:
parameters:
+1 -1
View File
@@ -175,7 +175,7 @@ func (h AccessHandler) ListRolePageSettings(c *gin.Context) {
// @Param id path string true "id role"
// @Success 200 {object} DetailRolePageResponse
// @Failure 500 {object} shared.BaseErrorResponse
// @Router /antrian-operasi/{id} [get]
// @Router /access/role-permission/{id} [get]
func (h AccessHandler) DetailRolePageSettings(c *gin.Context) {
idPermission := c.Param("id")