```php
<?php

require_once '../../core/api_bootstrap.php';
require_once '../../core/employee_auth.php';

EmployeeAuth::check('manage_roles');

$data = Request::get();

try{

Validator::required($data,['role_id']);

$db = new Database();
$conn = $db->connect();

$stmt = $conn->prepare("

SELECT p.id,p.permission_key,p.description

FROM role_permissions rp

JOIN permissions p
ON rp.permission_id=p.id

WHERE rp.role_id=:role

");

$stmt->execute([
':role'=>$data['role_id']
]);

$permissions = $stmt->fetchAll();

Response::success($permissions);

}
catch(Exception $e){

Logger::log("system.log",$e->getMessage());

Response::error("Server error",500);

}