POST api/Search/ValidBookingTypesForResourceSearchResult
Request Information
URI Parameters
None.
Body Parameters
SearchResultName | Description | Type | Additional information |
---|---|---|---|
ResourceTypeIdentity | globally unique identifier |
None. |
|
BookingTypeIdentities | Collection of globally unique identifier |
None. |
|
Identity | globally unique identifier |
None. |
|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ResourceTypeIdentity": "e5b191d3-f4ab-4d51-929c-3cb5b5482de7", "BookingTypeIdentities": [ "67bfe926-6fb8-4c09-9e6b-9abdce5eecbb", "5a7b881e-df75-421a-bebe-3eb0816b6979" ], "Identity": "22368b34-57d1-4182-858a-e19895f152e0", "Name": "sample string 3" }
application/xml, text/xml
Sample:
<SearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model.ToDoModels"> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">22368b34-57d1-4182-858a-e19895f152e0</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 3</Name> <BookingTypeIdentities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>67bfe926-6fb8-4c09-9e6b-9abdce5eecbb</d2p1:guid> <d2p1:guid>5a7b881e-df75-421a-bebe-3eb0816b6979</d2p1:guid> </BookingTypeIdentities> <ResourceTypeIdentity>e5b191d3-f4ab-4d51-929c-3cb5b5482de7</ResourceTypeIdentity> </SearchResult>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of BookingTypeSearchResultName | Description | Type | Additional information |
---|---|---|---|
Description | string |
None. |
|
ResourceRestrictionRules | Collection of ResourceRequirementTemplate |
None. |
|
ImageUri | URI |
None. |
|
CanEdit | boolean |
None. |
|
Identity | globally unique identifier |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Description": "sample string 1", "ResourceRestrictionRules": [ { "Name": "sample string 1", "Identity": "898c65bc-239f-41f9-85cd-c115fc773c39", "ResourceType": { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, "Min": 3, "Max": 4, "ResourceGroups": [ { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" } ], "AllowResourceSelection": true, "IsPrimary": true }, { "Name": "sample string 1", "Identity": "898c65bc-239f-41f9-85cd-c115fc773c39", "ResourceType": { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, "Min": 3, "Max": 4, "ResourceGroups": [ { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" } ], "AllowResourceSelection": true, "IsPrimary": true } ], "ImageUri": "http://webapihelppage2.com", "CanEdit": true, "Identity": "45e05e40-e621-4241-96f4-f0d5236c9b2b", "Name": "sample string 5" }, { "Description": "sample string 1", "ResourceRestrictionRules": [ { "Name": "sample string 1", "Identity": "898c65bc-239f-41f9-85cd-c115fc773c39", "ResourceType": { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, "Min": 3, "Max": 4, "ResourceGroups": [ { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" } ], "AllowResourceSelection": true, "IsPrimary": true }, { "Name": "sample string 1", "Identity": "898c65bc-239f-41f9-85cd-c115fc773c39", "ResourceType": { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, "Min": 3, "Max": 4, "ResourceGroups": [ { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" }, { "Identity": "da673aa2-5431-4eeb-afe4-6a48f303bfc0", "Name": "sample string 2" } ], "AllowResourceSelection": true, "IsPrimary": true } ], "ImageUri": "http://webapihelppage2.com", "CanEdit": true, "Identity": "45e05e40-e621-4241-96f4-f0d5236c9b2b", "Name": "sample string 5" } ]
application/xml, text/xml
Sample:
<ArrayOfBookingTypeSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <BookingTypeSearchResult> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">45e05e40-e621-4241-96f4-f0d5236c9b2b</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 5</Name> <CanEdit>true</CanEdit> <Description>sample string 1</Description> <ImageUri>http://webapihelppage2.com/</ImageUri> <ResourceRestrictionRules> <ResourceRequirementTemplate> <AllowResourceSelection>true</AllowResourceSelection> <Identity>898c65bc-239f-41f9-85cd-c115fc773c39</Identity> <IsPrimary>true</IsPrimary> <Max>4</Max> <Min>3</Min> <Name>sample string 1</Name> <ResourceGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> </ResourceGroups> <ResourceType xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </ResourceType> </ResourceRequirementTemplate> <ResourceRequirementTemplate> <AllowResourceSelection>true</AllowResourceSelection> <Identity>898c65bc-239f-41f9-85cd-c115fc773c39</Identity> <IsPrimary>true</IsPrimary> <Max>4</Max> <Min>3</Min> <Name>sample string 1</Name> <ResourceGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> </ResourceGroups> <ResourceType xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </ResourceType> </ResourceRequirementTemplate> </ResourceRestrictionRules> </BookingTypeSearchResult> <BookingTypeSearchResult> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">45e05e40-e621-4241-96f4-f0d5236c9b2b</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 5</Name> <CanEdit>true</CanEdit> <Description>sample string 1</Description> <ImageUri>http://webapihelppage2.com/</ImageUri> <ResourceRestrictionRules> <ResourceRequirementTemplate> <AllowResourceSelection>true</AllowResourceSelection> <Identity>898c65bc-239f-41f9-85cd-c115fc773c39</Identity> <IsPrimary>true</IsPrimary> <Max>4</Max> <Min>3</Min> <Name>sample string 1</Name> <ResourceGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> </ResourceGroups> <ResourceType xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </ResourceType> </ResourceRequirementTemplate> <ResourceRequirementTemplate> <AllowResourceSelection>true</AllowResourceSelection> <Identity>898c65bc-239f-41f9-85cd-c115fc773c39</Identity> <IsPrimary>true</IsPrimary> <Max>4</Max> <Min>3</Min> <Name>sample string 1</Name> <ResourceGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> <d5p1:NamedObject> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </d5p1:NamedObject> </ResourceGroups> <ResourceType xmlns:d5p1="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security"> <d5p1:Identity>da673aa2-5431-4eeb-afe4-6a48f303bfc0</d5p1:Identity> <d5p1:Name>sample string 2</d5p1:Name> </ResourceType> </ResourceRequirementTemplate> </ResourceRestrictionRules> </BookingTypeSearchResult> </ArrayOfBookingTypeSearchResult>