access role documentation

This commit is contained in:
renaldybrada
2026-02-25 09:10:25 +07:00
parent 14f5850629
commit 6ac3798ea8
4 changed files with 250 additions and 0 deletions
+89
View File
@@ -9,6 +9,70 @@
"host": "localhost:8080",
"basePath": "/api",
"paths": {
"/access/eligible-menu": {
"get": {
"tags": [
"Access Role"
],
"summary": "Get Pages By Keycloak Id",
"parameters": [
{
"type": "string",
"description": "Keycloak ID",
"name": "keycloak_id",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/shared.BaseResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/access/sync-keycloak-role": {
"post": {
"tags": [
"Access Role"
],
"summary": "Sync Keycloak Role",
"parameters": [
{
"description": "Sync Keycloak Role",
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/access.SyncKeycloakRoleRequest"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/shared.BaseResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/shared.BaseErrorResponse"
}
}
}
}
},
"/antrian-operasi/": {
"get": {
"tags": [
@@ -784,6 +848,31 @@
}
},
"definitions": {
"access.SyncKeycloakRoleRequest": {
"type": "object",
"required": [
"email",
"keycloak_id",
"name"
],
"properties": {
"client_role": {
"type": "array",
"items": {
"type": "string"
}
},
"email": {
"type": "string"
},
"keycloak_id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"antrianoperasi.CreatePasienOperasiRequest": {
"type": "object",
"required": [