Tipos de Documentos (Document Request Types)


Routes

Method URI Action
GET /document-request-types index
GET /document-request-types/{id} show
POST /document-request-types store
PATCH /document-request-types/{id} update
DELETE /document-request-types/{id} delete

Model Attributes

{
  "id": 1,
  "name": "Contenido Programatico",
  "enabled": true,
  "updated_at": "2020-06-11 02:37:10",
  "created_at": "2020-06-11 02:37:10"
}

Index

Route GET /document-request-types

Policies

  • admin

Filters extends Query Filters

Filter Description
search=string Busca a traves de name
enabled=bool Obtiene los habilitados

Response 200

[
  {
    // DocumentRequestType
  }
]

Store

Route POST /document-request-types

Policies

  • admin

Request Body

{
  "name": "required|string",
  "enabled": "required|boolean"
}

Response 201

{
  // DocumentRequestType
}

Update

Route PATCH /document-request-types/{id}

Policies

  • admin

Request Body

{
  "name": "string",
  "enabled": "boolean"
}

Response 200

{
  // DocumentRequestType
}

Delete

Route DELETE /document-request-types/{id}

Policies

  • admin

Response 204 No Content