endpoint user role
This commit is contained in:
@@ -46,6 +46,53 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/access/list-user": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Access Role"
|
||||
],
|
||||
"summary": "Get List User And Role",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Search Keyword",
|
||||
"name": "search",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"default": "10",
|
||||
"description": "Limit",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"default": "0",
|
||||
"description": "Offset",
|
||||
"name": "offset",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/access.UserRoleResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/shared.BaseErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/access/sync-keycloak-role": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -879,6 +926,26 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"access.UserRoleResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"hak_akses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"antrianoperasi.CreatePasienOperasiRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -40,6 +40,53 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/access/list-user": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"Access Role"
|
||||
],
|
||||
"summary": "Get List User And Role",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Search Keyword",
|
||||
"name": "search",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"default": "10",
|
||||
"description": "Limit",
|
||||
"name": "limit",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"default": "0",
|
||||
"description": "Offset",
|
||||
"name": "offset",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/access.UserRoleResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/shared.BaseErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/access/sync-keycloak-role": {
|
||||
"post": {
|
||||
"tags": [
|
||||
@@ -873,6 +920,26 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"access.UserRoleResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"hak_akses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"antrianoperasi.CreatePasienOperasiRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
||||
@@ -17,6 +17,19 @@ definitions:
|
||||
- keycloak_id
|
||||
- name
|
||||
type: object
|
||||
access.UserRoleResponse:
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
hak_akses:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type: object
|
||||
antrianoperasi.CreatePasienOperasiRequest:
|
||||
properties:
|
||||
diagnosisItems:
|
||||
@@ -469,6 +482,37 @@ paths:
|
||||
summary: Get Pages By Keycloak Id
|
||||
tags:
|
||||
- Access Role
|
||||
/access/list-user:
|
||||
get:
|
||||
parameters:
|
||||
- description: Search Keyword
|
||||
in: query
|
||||
name: search
|
||||
type: string
|
||||
- default: "10"
|
||||
description: Limit
|
||||
in: query
|
||||
name: limit
|
||||
type: string
|
||||
- default: "0"
|
||||
description: Offset
|
||||
in: query
|
||||
name: offset
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
items:
|
||||
$ref: '#/definitions/access.UserRoleResponse'
|
||||
type: array
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/shared.BaseErrorResponse'
|
||||
summary: Get List User And Role
|
||||
tags:
|
||||
- Access Role
|
||||
/access/sync-keycloak-role:
|
||||
post:
|
||||
parameters:
|
||||
|
||||
Reference in New Issue
Block a user