GET v1/occupation/spaces?name={name}&active={active}&page={page}&pageSize={pageSize}

Get spaces filtered by name or active

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

space name

string

None.

active

space status

boolean

None.

page

page index

integer

None.

pageSize

page sixe

integer

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SpaceOccupationsModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Active

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Active": true
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Active": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfSpaceOccupationsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/I9P.SmartCity.API.Models">
  <SpaceOccupationsModel>
    <Active>true</Active>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </SpaceOccupationsModel>
  <SpaceOccupationsModel>
    <Active>true</Active>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </SpaceOccupationsModel>
</ArrayOfSpaceOccupationsModel>