-
-
Notifications
You must be signed in to change notification settings - Fork 0
Role
Victor Tesoura Júnior edited this page Apr 21, 2022
·
3 revisions
Role has the following structure:
{
id: int,
name: string,
description: string,
created_at: dateTime,
updated_at: dateTime,
deleted_at: dateTime
}
Bellow the role
route list:
METHOD | URI | NAME |
---|---|---|
GET HEAD | /roles | roles.index |
POST | /roles | roles.store |
GET HEAD | /roles/{id} | roles.show |
PUT PATCH | /roles/{id} | roles.update |
DELETE | /roles/{id} | roles.destroy |
{
"id": 2,
"name": "customer",
"description": "Super customer",
"created_at": "2021-03-15T01:38:48.000000Z",
"updated_at": "2021-03-15T01:38:48.000000Z",
"deleted_at": null
}
Great codes to reuse everywhere you want 🚀