[GET] List Module
Operation
Returns a list of all the Module by chain and property.
GET
http://{urlName}/tesiproPMS/api/{version}/chain/{chainId}/property/{propertyId}/module
Request
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | The id of the chain. This parameter will be in the URL. Path parameter. | |
propertyId | Integer | true | The id of the property. This parameter will be in the URL. Path parameter. | |
floorId | Integer | false | Filter by Floor. | |
search | String | false | Search by module name and module code. | |
offset | Integer | false | 0 | The offset of the list of results |
limit | Integer | false | 10 | The limit amount of the list of results |
sort | String | false | Id | Field of Module to sort by. |
sortMode | String | false | Asc | Mode of sorting: asc, desc.. |
Example request
GET http://81.184.0.161:9696/tesiproPMS/api/v1/chain/1/property/2/module
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true | Response |
Example response
{ "count": 20, "offset": 0, "limit": 10, "list": [ { "id": 1, "createdDate": "2018-07-16T15:25:06.820Z", "modifiedDate": "2018-07-16T15:37:49.727Z", "createdUser": 0, "modifiedUser": 0, "property": null, "code": "101", "name": "M101", "floor": { "id": 1, "createdDate": "2018-07-16T15:25:06.543Z", "modifiedDate": "2018-07-16T15:25:06.547Z", "createdUser": 0, "modifiedUser": 0, "code": "1", "name": "Floor 1", "order": 1 }, "moduleStatusType": null, "roomModuleSet": null, "moduleLockSet": null, "hasIssue": false }, { "id": 2, "createdDate": "2018-07-16T15:25:06.910Z", "modifiedDate": "2018-07-16T15:38:00.537Z", "createdUser": 0, "modifiedUser": 0, "property": null, "code": "102", "name": "M102", "floor": { "id": 1, "createdDate": "2018-07-16T15:25:06.543Z", "modifiedDate": "2018-07-16T15:25:06.547Z", "createdUser": 0, "modifiedUser": 0, "code": "1", "name": "Floor 1", "order": 1 }, "moduleStatusType": null, "roomModuleSet": null, "moduleLockSet": null, "hasIssue": false }, { "id": 3, "createdDate": "2018-07-16T15:25:06.997Z", "modifiedDate": "2018-07-16T15:38:00.230Z", "createdUser": 0, "modifiedUser": 0, "property": null, "code": "103", "name": "M103", "floor": { "id": 1, "createdDate": "2018-07-16T15:25:06.543Z", "modifiedDate": "2018-07-16T15:25:06.547Z", "createdUser": 0, "modifiedUser": 0, "code": "1", "name": "Floor 1", "order": 1 }, "moduleStatusType": null, "roomModuleSet": null, "moduleLockSet": null, "hasIssue": false }, { "id": 4, "createdDate": "2018-07-16T15:25:07.090Z", "modifiedDate": "2018-07-16T15:38:00.687Z", "createdUser": 0, "modifiedUser": 0, "property": null, "code": "104", "name": "M104", "floor": { "id": 1, "createdDate": "2018-07-16T15:25:06.543Z", "modifiedDate": "2018-07-16T15:25:06.547Z", "createdUser": 0, "modifiedUser": 0, "code": "1", "name": "Floor 1", "order": 1 }, "moduleStatusType": null, "roomModuleSet": null, "moduleLockSet": null, "hasIssue": false }, { "id": 5, "createdDate": "2018-07-16T15:25:07.173Z", "modifiedDate": "2018-07-16T15:37:29.977Z", "createdUser": 0, "modifiedUser": 0, "property": null, "code": "105", "name": "M105", "floor": { "id": 1, "createdDate": "2018-07-16T15:25:06.543Z", "modifiedDate": "2018-07-16T15:25:06.547Z", "createdUser": 0, "modifiedUser": 0, "code": "1", "name": "Floor 1", "order": 1 }, "moduleStatusType": null, "roomModuleSet": null, "moduleLockSet": null, "hasIssue": false } ]}