Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Information of the operation

Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

GET



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;
http://{urlName}/tesiproPMS/api/{version}/chain/{chainId}/property/{propertyId}/lostItem



Request

Response

PropertyTypeRequiredDefault valueDescriptionnameStringtrueDescription of the field.

Example request

Code Block
languagepowershell
themeDJango
GET http://81.184.0.161:9696/tesiproPMS/api/v1/chain/1/property/2/lostItem
PropertyTypeRequiredDescriptionchainIdIntegertrue
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

Code Block
languagepowershell
themeDJango
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

Insert excerpt
LostItem
LostItem
nopaneltrue


Example response

Code Block
themeDJango
{
	"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"
		}
	]
}