Overview
Search request for Resources.Details
Type
POST
Endpoint
{{url}}/api/Search/Resources
Request
The request will include all filter options valid for resources; such as location, space type, equipment etc.
The option to specify available resources only is needed, this will then require the start and end time option.
Example
{ "SearchText": "", "Location": { "Country": "", "City": "", "Site": "", "Building": "", "Floor": "", "Zone": "" }, "SpaceTypes": ["Room", "Conference Room"], "Equipment": ["Phone", "TV"], "Tags": [], "MinOccupancy": 4, "Available": true, // available based on StartTime and EndTime "StartTime": "dd/MM/yyyy HH:mm", "EndTime": "dd/MM/yyyy HH:mm" }
Response
The response will include a list of all resources that match the requested search criteria.
Full booking data for each resource is not required.
Example
{ "SearchResults": [ { "ResId": 1, "Name": "Meeting Room", "Status": 1, "Location": { "Country": "", "City": "", "Site": "", "Building": "", "Floor": "", "Zone": "" }, "SpaceType": "Room", "IconPath": "", "Occupancy": 4, "MapId": 1234, }, { "ResId": 2, "Name": "Conference Room", "Status": 1, "Location": { "Country": "", "City": "", "Site": "", "Building": "", "Floor": "", "Zone": "" }, "SpaceType": "Conference Room", "IconPath": "/ResourceFiles/images/conference-room-icon.svg", "Occupancy": 8, "MapId": 1234, } ] }