Skip to content
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
}

Routes

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

Response

{
  "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
}
Clone this wiki locally