GET api/Rules
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of BookingRuleTypeName | Description | Type | Additional information |
---|---|---|---|
Properties | Collection of BookingRuleTypeProperty |
None. |
|
RunOnUpdateAsCreate | boolean |
None. |
|
RunOnCreateType | RuleActionType |
None. |
|
RunOnUpdateType | RuleActionType |
None. |
|
RunOnDeleteType | RuleActionType |
None. |
|
RuleGroupRequiresOneValidOnly | boolean |
None. |
|
Identity | globally unique identifier |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Properties": [ { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "fa3893c7-d7db-4a9c-ad91-f63c9bd21b13", "StartRange": true, "EndRange": true }, { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "fa3893c7-d7db-4a9c-ad91-f63c9bd21b13", "StartRange": true, "EndRange": true } ], "RunOnUpdateAsCreate": true, "RunOnCreateType": 0, "RunOnUpdateType": 0, "RunOnDeleteType": 0, "RuleGroupRequiresOneValidOnly": true, "Identity": "efe46279-aec1-4977-bff2-3aedb3cc816a", "Name": "sample string 4" }, { "Properties": [ { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "fa3893c7-d7db-4a9c-ad91-f63c9bd21b13", "StartRange": true, "EndRange": true }, { "Name": "sample string 1", "ValueType": "sample string 2", "ValueChoices": [ "sample string 1", "sample string 2" ], "Identity": "fa3893c7-d7db-4a9c-ad91-f63c9bd21b13", "StartRange": true, "EndRange": true } ], "RunOnUpdateAsCreate": true, "RunOnCreateType": 0, "RunOnUpdateType": 0, "RunOnDeleteType": 0, "RuleGroupRequiresOneValidOnly": true, "Identity": "efe46279-aec1-4977-bff2-3aedb3cc816a", "Name": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfBookingRuleType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.API.Model"> <BookingRuleType> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">efe46279-aec1-4977-bff2-3aedb3cc816a</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 4</Name> <Properties> <BookingRuleTypeProperty> <EndRange>true</EndRange> <Identity>fa3893c7-d7db-4a9c-ad91-f63c9bd21b13</Identity> <Name>sample string 1</Name> <StartRange>true</StartRange> <ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </ValueChoices> <ValueType>sample string 2</ValueType> </BookingRuleTypeProperty> <BookingRuleTypeProperty> <EndRange>true</EndRange> <Identity>fa3893c7-d7db-4a9c-ad91-f63c9bd21b13</Identity> <Name>sample string 1</Name> <StartRange>true</StartRange> <ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </ValueChoices> <ValueType>sample string 2</ValueType> </BookingRuleTypeProperty> </Properties> <RuleGroupRequiresOneValidOnly>true</RuleGroupRequiresOneValidOnly> <RunOnCreateType>Never</RunOnCreateType> <RunOnDeleteType>Never</RunOnDeleteType> <RunOnUpdateAsCreate>true</RunOnUpdateAsCreate> <RunOnUpdateType>Never</RunOnUpdateType> </BookingRuleType> <BookingRuleType> <Identity xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">efe46279-aec1-4977-bff2-3aedb3cc816a</Identity> <Name xmlns="http://schemas.datacontract.org/2004/07/Scientia.Platform.Library.Security">sample string 4</Name> <Properties> <BookingRuleTypeProperty> <EndRange>true</EndRange> <Identity>fa3893c7-d7db-4a9c-ad91-f63c9bd21b13</Identity> <Name>sample string 1</Name> <StartRange>true</StartRange> <ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </ValueChoices> <ValueType>sample string 2</ValueType> </BookingRuleTypeProperty> <BookingRuleTypeProperty> <EndRange>true</EndRange> <Identity>fa3893c7-d7db-4a9c-ad91-f63c9bd21b13</Identity> <Name>sample string 1</Name> <StartRange>true</StartRange> <ValueChoices xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>sample string 1</d5p1:string> <d5p1:string>sample string 2</d5p1:string> </ValueChoices> <ValueType>sample string 2</ValueType> </BookingRuleTypeProperty> </Properties> <RuleGroupRequiresOneValidOnly>true</RuleGroupRequiresOneValidOnly> <RunOnCreateType>Never</RunOnCreateType> <RunOnDeleteType>Never</RunOnDeleteType> <RunOnUpdateAsCreate>true</RunOnUpdateAsCreate> <RunOnUpdateType>Never</RunOnUpdateType> </BookingRuleType> </ArrayOfBookingRuleType>