POST api/Emprestimo

Cria um novo empréstimo na biblioteca.

Request Information

URI Parameters

None.

Body Parameters

objeto Emprestimo com os dados do empréstimo a ser criado

Emprestimo
NameDescriptionTypeAdditional information
Id

integer

None.

IdUtilizador

integer

None.

IdLivro

integer

None.

DataEmprestimo

date

None.

DataDevolucaoPrevista

date

None.

DataDevolucaoReal

date

None.

Status

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IdUtilizador": 1,
  "IdLivro": 1,
  "DataEmprestimo": "2025-06-16T06:55:21.8849132-05:00",
  "DataDevolucaoPrevista": "2025-06-16T06:55:21.8849132-05:00",
  "DataDevolucaoReal": "2025-06-16T06:55:21.8849132-05:00",
  "Status": true
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

retorna o status da operação

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.