[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

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.
floorIdIntegerfalse
Filter by Floor.
searchStringfalse
Search by module name and module code.
offsetIntegerfalse0The offset of the list of results
limitIntegerfalse10The limit amount of the list of results
sortStringfalseIdField of Module to sort by.
sortModeStringfalseAscMode of sorting: asc, desc..

Example request

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


Response

PropertyTypeRequiredDescription
PagePagetrueResponse

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
    }
]}