PERMISSION
Welcome to Rizrv ! To get characters you need to make a call to the following url :
GET ALL PERMISSION
GEThttps://apis.rizrv.in/api/permissionsUse LARAVEL cURL
$token = "USER_AUTH_TOKEN";
$ch = curl_init();
$header = array();
$header[] = 'Content-length: 0';
$header[] = 'Content-type: application/json';
$header[] = 'Authorization: Bearer '. $token;
curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/permissions");
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'GET' );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
curl_close($ch);
$response = json_decode($server_output, true);
if ($response) { ... } else { ... }
{
"status": 200,
"message": "Success",
"permissions": [
{
"name": "Franchises",
"items": [
{
"id": 19,
"name": "add",
"slug": "add-franchises",
"description": null,
"model": "Franchises",
"created_at": "2023-08-11T07:59:12.000000Z",
"updated_at": "2023-08-11T07:59:12.000000Z",
"deleted_at": null
}
]
},
{
"name": "Membership",
"items": [
{
"id": 23,
"name": "add",
"slug": "add-membership",
"description": null,
"model": "Membership",
"created_at": "2023-08-11T07:59:30.000000Z",
"updated_at": "2023-08-11T07:59:30.000000Z",
"deleted_at": null
}
]
},
{
"name": "RolePremission",
"items": [
{
"id": 14,
"name": "add",
"slug": "add-rolepremission",
"description": "Welcome to Add Permission",
"model": "RolePremission",
"created_at": "2023-08-09T10:59:36.000000Z",
"updated_at": "2023-08-09T10:59:36.000000Z",
"deleted_at": null
}
]
}
]
}