GET api/Emprestimo
Retorna uma lista de todos os empréstimos registados na biblioteca da base de dados.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
retorna uma lista de empréstimos
Collection of EmprestimoName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
IdUtilizador | integer |
None. |
|
IdLivro | integer |
None. |
|
DataEmprestimo | date |
None. |
|
DataDevolucaoPrevista | date |
None. |
|
DataDevolucaoReal | date |
None. |
|
Status | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "IdUtilizador": 1, "IdLivro": 1, "DataEmprestimo": "2025-06-16T07:58:21.4622483-05:00", "DataDevolucaoPrevista": "2025-06-16T07:58:21.4622483-05:00", "DataDevolucaoReal": "2025-06-16T07:58:21.4622483-05:00", "Status": true }, { "Id": 1, "IdUtilizador": 1, "IdLivro": 1, "DataEmprestimo": "2025-06-16T07:58:21.4622483-05:00", "DataDevolucaoPrevista": "2025-06-16T07:58:21.4622483-05:00", "DataDevolucaoReal": "2025-06-16T07:58:21.4622483-05:00", "Status": true } ]
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.