[GET] Single LostItem

Operation

Gets only a single instance of LostItem.

GET
http://{urlName}/tesiproPMS/api/{version}/chain/{chainId}/property/{propertyId}/lostItem/{lostItemId}


Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
The id of the chain. This parameter will be in the URL. Path parameter.
propertyIdIntegertrue
The id of the property. This parameter will be in the URL. Path parameter.
lostItemIdIntegertrue
The id of the lostItem to be retrieved. This parameter will be in the URL. Path parameter.

Example request

GET http://81.184.0.161:9696/tesiproPMS/api/v1/chain/1/property/2/lostItem/1


Response

Single LostItem.

Entity


FieldTypeRequiredDescription
idIntegertrueUnique identifier for the LostItem.
propertyPropertytrueProperty related to this LostItem.
dateDatetrueThe date when the item was lost.
nameStringtrueName of the LostItem.
foundByStringfalseName of who found the LostItem.
roomRoomfalseRoom where the LostItem was found.
locationStringfalseLocation of the LostItem.
reservationRoomStayReservationRoomStayfalseReservationRoomStay related to the LostItem.
profileProfilefalseProfile related to the LostItem.
guestStringfalseGuest name related to the LostItem.
remarkStringfalseSome comments, explanations or remarks about the LostItem.
deliveredToStringfalseName of the person who received the LostItem.
dateOfDeliveryDatefalseDate when the LostItem was delivered to its owner.
documentNumberStringfalseDocument number of the person who receives the LostItem.
remarkOfDeliveryStringfalseComments, remarks or explanations about the delivery of the LostItem.
lostItemStatusTypeLostItemStatusTypetrueStatus of the LostItem.

Example response

{
  "id" : 1,
  "createdDate" : "2018-08-03T13:51:53.547Z",
  "modifiedDate" : "2018-08-03T13:51:53.547Z",
  "createdUser" : 0,
  "modifiedUser" : 0,
  "date" : "2018-01-01",
  "name" : "Item 1",
  "foundBy" : "Pedro",
  "location" : "Hall",
  "guest" : "Carl Anaïs",
  "remark" : "Remark item",
  "lostItemStatusType" : {
    "id" : 2,
    "code" : "2",
    "name" : "Lost",
    "nameI18n" : "Lost",
    "colorCode" : "#f57c00"
  },
  "lostItemImageSet" : [ {
    "id" : 1,
    "createdDate" : "2018-08-03T13:51:55.100Z",
    "modifiedDate" : "2018-08-03T13:51:55.097Z",
    "createdUser" : 0,
    "modifiedUser" : 0,
    "imageName" : "a5712954-b697-435b-b674-774d69dfdc28.jpg"
  } ],
  "mainImage" : "a5712954-b697-435b-b674-774d69dfdc28.jpg"
}