POST Turno/BuscarTurno

Request Information

URI Parameters

None.

Body Parameters

TurnoModel
NameDescriptionTypeAdditional information
Id

integer

None.

Codigo

integer

None.

Descricao

string

None.

TurnoDetalhe

Collection of TurnoDetalheModel

None.

DataCadastro

date

None.

EmpresasSelected

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Codigo": 2,
  "Descricao": "sample string 3",
  "TurnoDetalhe": [
    {
      "Id": 1,
      "DiaSemana": "sample string 2",
      "HorarioInicial": "sample string 3",
      "HorarioFinal": "sample string 4",
      "TurnoId": 5,
      "DataCadastro": "2025-12-27T14:41:20.8910588-03:00"
    },
    {
      "Id": 1,
      "DiaSemana": "sample string 2",
      "HorarioInicial": "sample string 3",
      "HorarioFinal": "sample string 4",
      "TurnoId": 5,
      "DataCadastro": "2025-12-27T14:41:20.8910588-03:00"
    }
  ],
  "DataCadastro": "2025-12-27T14:41:20.8910588-03:00",
  "EmpresasSelected": [
    1,
    2
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'lurin.meurhonline.domain.model.TurnoDetalheModel' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'lurin.meurhonline.domain.model.TurnoDetalheModel' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TurnoModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.