POST api/Search/ValidBookingTypesForResourceSearchResult

Request Information

URI Parameters

None.

Body Parameters

SearchResult
NameDescriptionTypeAdditional 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": "f3cfa137-6ba7-48b2-b8d1-a125ba725d87",
  "BookingTypeIdentities": [
    "1687fea8-2278-4147-817b-ad410d67efa3",
    "bbec5711-fa46-45d1-96d6-94b953721c26"
  ],
  "Identity": "0a08493e-d3a8-419b-b4f7-c306a9d7947d",
  "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">0a08493e-d3a8-419b-b4f7-c306a9d7947d</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>1687fea8-2278-4147-817b-ad410d67efa3</d2p1:guid>
    <d2p1:guid>bbec5711-fa46-45d1-96d6-94b953721c26</d2p1:guid>
  </BookingTypeIdentities>
  <ResourceTypeIdentity>f3cfa137-6ba7-48b2-b8d1-a125ba725d87</ResourceTypeIdentity>
</SearchResult>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of BookingTypeSearchResult
NameDescriptionTypeAdditional 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": "03cea945-dc28-48b7-8521-4cae39b0147a",
        "ResourceType": {
          "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
          "Name": "sample string 2"
        },
        "Min": 3,
        "Max": 4,
        "ResourceGroups": [
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          },
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          }
        ],
        "AllowResourceSelection": true,
        "IsPrimary": true
      },
      {
        "Name": "sample string 1",
        "Identity": "03cea945-dc28-48b7-8521-4cae39b0147a",
        "ResourceType": {
          "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
          "Name": "sample string 2"
        },
        "Min": 3,
        "Max": 4,
        "ResourceGroups": [
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          },
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          }
        ],
        "AllowResourceSelection": true,
        "IsPrimary": true
      }
    ],
    "ImageUri": "http://webapihelppage2.com",
    "CanEdit": true,
    "Identity": "181d5730-0f17-4b13-821e-b190ba079a77",
    "Name": "sample string 5"
  },
  {
    "Description": "sample string 1",
    "ResourceRestrictionRules": [
      {
        "Name": "sample string 1",
        "Identity": "03cea945-dc28-48b7-8521-4cae39b0147a",
        "ResourceType": {
          "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
          "Name": "sample string 2"
        },
        "Min": 3,
        "Max": 4,
        "ResourceGroups": [
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          },
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          }
        ],
        "AllowResourceSelection": true,
        "IsPrimary": true
      },
      {
        "Name": "sample string 1",
        "Identity": "03cea945-dc28-48b7-8521-4cae39b0147a",
        "ResourceType": {
          "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
          "Name": "sample string 2"
        },
        "Min": 3,
        "Max": 4,
        "ResourceGroups": [
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          },
          {
            "Identity": "f0442e16-1793-4bed-af82-6eeff9a263f4",
            "Name": "sample string 2"
          }
        ],
        "AllowResourceSelection": true,
        "IsPrimary": true
      }
    ],
    "ImageUri": "http://webapihelppage2.com",
    "CanEdit": true,
    "Identity": "181d5730-0f17-4b13-821e-b190ba079a77",
    "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">181d5730-0f17-4b13-821e-b190ba079a77</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>03cea945-dc28-48b7-8521-4cae39b0147a</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>f0442e16-1793-4bed-af82-6eeff9a263f4</d5p1:Identity>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:NamedObject>
          <d5p1:NamedObject>
            <d5p1:Identity>f0442e16-1793-4bed-af82-6eeff9a263f4</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>f0442e16-1793-4bed-af82-6eeff9a263f4</d5p1:Identity>
          <d5p1:Name>sample string 2</d5p1:Name>
        </ResourceType>
      </ResourceRequirementTemplate>
      <ResourceRequirementTemplate>
        <AllowResourceSelection>true</AllowResourceSelection>
        <Identity>03cea945-dc28-48b7-8521-4cae39b0147a</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>f0442e16-1793-4bed-af82-6eeff9a263f4</d5p1:Identity>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:NamedObject>
          <d5p1:NamedObject>
            <d5p1:Identity>f0442e16-1793-4bed-af82-6eeff9a263f4</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>f0442e16-1793-4bed-af82-6eeff9a263f4</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">181d5730-0f17-4b13-821e-b190ba079a77</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>03cea945-dc28-48b7-8521-4cae39b0147a</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>f0442e16-1793-4bed-af82-6eeff9a263f4</d5p1:Identity>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:NamedObject>
          <d5p1:NamedObject>
            <d5p1:Identity>f0442e16-1793-4bed-af82-6eeff9a263f4</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>f0442e16-1793-4bed-af82-6eeff9a263f4</d5p1:Identity>
          <d5p1:Name>sample string 2</d5p1:Name>
        </ResourceType>
      </ResourceRequirementTemplate>
      <ResourceRequirementTemplate>
        <AllowResourceSelection>true</AllowResourceSelection>
        <Identity>03cea945-dc28-48b7-8521-4cae39b0147a</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>f0442e16-1793-4bed-af82-6eeff9a263f4</d5p1:Identity>
            <d5p1:Name>sample string 2</d5p1:Name>
          </d5p1:NamedObject>
          <d5p1:NamedObject>
            <d5p1:Identity>f0442e16-1793-4bed-af82-6eeff9a263f4</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>f0442e16-1793-4bed-af82-6eeff9a263f4</d5p1:Identity>
          <d5p1:Name>sample string 2</d5p1:Name>
        </ResourceType>
      </ResourceRequirementTemplate>
    </ResourceRestrictionRules>
  </BookingTypeSearchResult>
</ArrayOfBookingTypeSearchResult>