[GET] List LostItem

Operation

Information of the operation

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


Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
The id of the chain. This parameter will be in the URL
propertyIdIntegertrue
The id of the property. This parameter  will be in the URL
dateDatefalse
Filter by date
searchStringfalse
A String that will filter results searching by name, location, and assignedUser
roomIdIntegerfalse
Filter by room
profileIdIntegerfalse
Filter by profile
lostItemStatusTypeIdIntegerfalse
Filter by lostItemStatusType
offsetIntegerfalse0The offset of the list of results
limitIntegerfalse10The limit amount of the list of results
sortStringfalseidfield of lostItem to sort by.
sortModeStringfalseAscMode of sorting: asc, desc..

Example request

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


Response

This endpoint returns a paginated Array of entities of type 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

{
	"count": 3,
	"offset": 0,
	"limit": 10,
	"list": [{
			"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": null,
			"mainImage": "a5712954-b697-435b-b674-774d69dfdc28.jpg"
		},
		{
			"id": 2,
			"createdDate": "2018-08-03T13:51:55.107Z",
			"modifiedDate": "2018-08-03T13:51:55.110Z",
			"createdUser": 0,
			"modifiedUser": 0,
			"date": "2018-01-01",
			"name": "Item 1",
			"foundBy": "Pedro",
			"location": "Hall",
			"guest": "Craig Yóu",
			"remark": "Remark item",
			"lostItemStatusType": {
				"id": 1,
				"code": "1",
				"name": "Found",
				"nameI18n": "Found",
				"colorCode": "#64b5f6"
			},
			"lostItemImageSet": null
		},
		{
			"id": 3,
			"createdDate": "2018-08-03T13:51:55.127Z",
			"modifiedDate": "2018-08-03T13:51:55.120Z",
			"createdUser": 0,
			"modifiedUser": 0,
			"date": "2018-01-01",
			"name": "Item 1",
			"foundBy": "Pedro",
			"location": "Hall",
			"guest": "Eugene Géraldine",
			"remark": "Remark item",
			"deliveredTo": "Irene Cléa",
			"dateOfDelivery": "2018-01-01",
			"documentNumber": "3557842975624616",
			"remarkOfDelivery": "Delivery Remark",
			"lostItemStatusType": {
				"id": 3,
				"code": "3",
				"name": "Delivered",
				"nameI18n": "Delivered",
				"colorCode": "#388e3c"
			},
			"lostItemImageSet": null,
			"mainImage": "865a0bc8-be20-4c8a-a98b-0ac2f911da2b.jpg"
		}
	]
}