endpoint update page role settings
This commit is contained in:
@@ -166,6 +166,44 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
@@ -978,6 +1016,10 @@ const docTemplate = `{
|
||||
"definitions": {
|
||||
"access.AccessPage": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"is_active"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
@@ -990,11 +1032,17 @@ const docTemplate = `{
|
||||
},
|
||||
"parent_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"sort": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"access.DetailRolePageResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"access_page": {
|
||||
"type": "array",
|
||||
@@ -1066,6 +1114,29 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -10,6 +10,11 @@ definitions:
|
||||
type: string
|
||||
parent_id:
|
||||
type: string
|
||||
sort:
|
||||
type: integer
|
||||
required:
|
||||
- id
|
||||
- is_active
|
||||
type: object
|
||||
access.DetailRolePageResponse:
|
||||
properties:
|
||||
@@ -23,6 +28,8 @@ definitions:
|
||||
type: string
|
||||
status:
|
||||
type: boolean
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
access.ListRolePermissionPaginateResponse:
|
||||
properties:
|
||||
@@ -59,6 +66,21 @@ definitions:
|
||||
- keycloak_id
|
||||
- name
|
||||
type: object
|
||||
access.UpdateRolePageRequest:
|
||||
properties:
|
||||
access_page:
|
||||
items:
|
||||
$ref: '#/definitions/access.AccessPage'
|
||||
type: array
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
status:
|
||||
type: boolean
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
access.UserRoleResponse:
|
||||
properties:
|
||||
email:
|
||||
@@ -621,6 +643,31 @@ paths:
|
||||
summary: Detail Role Page Settings
|
||||
tags:
|
||||
- Access Role
|
||||
put:
|
||||
parameters:
|
||||
- description: id role
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
- description: Body Update Role Page
|
||||
in: body
|
||||
name: 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'
|
||||
summary: Update Role Page Settings
|
||||
tags:
|
||||
- Access Role
|
||||
/access/sync-keycloak-role:
|
||||
post:
|
||||
parameters:
|
||||
|
||||
Reference in New Issue
Block a user