GET api/Reader

Eks: https://bne.rfidhuset.no/api/reader. Henter informasjon om alle RFID lesere som er registrert. Trenger ikke autentisering

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

json string

ReaderDTO
NameDescriptionTypeAdditional information
Id

Leserens Id.

integer

None.

Ip

Leserens eksterne IP.

string

None.

Name

Kort beskrivelse av leseren.

string

None.

LastIPChange

Angir tidspunkt ved detektering av en annen IP fra leser (dynamisk ip).

date

None.

Location

Informasjon om hvor leseren står.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Ip": "sample string 2",
  "Name": "sample string 3",
  "LastIPChange": "2025-12-08T22:05:06.8583649+01:00",
  "Location": "sample string 4"
}

text/xml

Sample:
{"Id":1,"Ip":"sample string 2","Name":"sample string 3","LastIPChange":"2025-12-08T22:05:06.8583649+01:00","Location":"sample string 4"}

application/xml

Sample:
<ReaderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bne_api.Models">
  <Id>1</Id>
  <Ip>sample string 2</Ip>
  <Name>sample string 3</Name>
</ReaderDTO>