fixing detail role settings docs
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user