POST api/Inspection/scheduledinspections

Gets a list of inspection that match the supplied filter criteria Refactored for Hybrid Mobile App

Request Information

URI Parameters

None.

Body Parameters

A JSON string that may be deserialized into a FilterInspectionMobile object. Available parameters include: Buildings, StartDate, EndDate, Tour, SpaceTypes, Service

FilterInspection
NameDescriptionTypeAdditional information
AccountID

integer

None.

InspectionDateFrom

date

None.

SearchText

string

None.

QuickSearchTitle

string

None.

InspectionDateTo

date

None.

ScheduledDateFrom

date

None.

ScheduledDateTo

date

None.

SpaceGroupID

integer

None.

SpaceTypeDescription

string

None.

SpaceGroupIDs

Collection of integer

None.

BuildingSpaceIDs

Collection of integer

None.

InspectionTypeID

integer

None.

WorkerID

integer

None.

InspectorID

integer

None.

TemplateDescription

string

None.

BuildingID

integer

None.

SpaceID

integer

None.

AreaID

integer

None.

FloorID

integer

None.

ScorePass

boolean

None.

ScoreFail

boolean

None.

ScoreUnscored

boolean

None.

IsTour

boolean

None.

CampusID

integer

None.

State

string

None.

StateCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "InspectionDateFrom": "2024-05-18T06:33:11.5162703Z",
  "SearchText": "sample string 1",
  "QuickSearchTitle": "sample string 2",
  "InspectionDateTo": "2024-05-18T06:33:11.5162703Z",
  "ScheduledDateFrom": "2024-05-18T06:33:11.5162703Z",
  "ScheduledDateTo": "2024-05-18T06:33:11.5162703Z",
  "SpaceGroupID": 1,
  "SpaceTypeDescription": "sample string 3",
  "SpaceGroupIDs": [
    1,
    2
  ],
  "BuildingSpaceIDs": [
    1,
    2
  ],
  "InspectionTypeID": 1,
  "WorkerID": 1,
  "InspectorID": 1,
  "TemplateDescription": "sample string 4",
  "BuildingID": 1,
  "SpaceID": 1,
  "AreaID": 1,
  "FloorID": 1,
  "ScorePass": true,
  "ScoreFail": true,
  "ScoreUnscored": true,
  "IsTour": true,
  "CampusID": 1,
  "State": "sample string 5",
  "StateCode": "sample string 6"
}

application/xml, text/xml

Sample:
<FilterInspection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Filters">
  <AccountID>1</AccountID>
  <AreaID>1</AreaID>
  <BuildingID>1</BuildingID>
  <BuildingSpaceIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </BuildingSpaceIDs>
  <CampusID>1</CampusID>
  <FloorID>1</FloorID>
  <InspectionDateFrom>2024-05-18T06:33:11.5162703+00:00</InspectionDateFrom>
  <InspectionDateTo>2024-05-18T06:33:11.5162703+00:00</InspectionDateTo>
  <InspectionTypeID>1</InspectionTypeID>
  <InspectorID>1</InspectorID>
  <IsTour>true</IsTour>
  <QuickSearchTitle>sample string 2</QuickSearchTitle>
  <ScheduledDateFrom>2024-05-18T06:33:11.5162703+00:00</ScheduledDateFrom>
  <ScheduledDateTo>2024-05-18T06:33:11.5162703+00:00</ScheduledDateTo>
  <ScoreFail>true</ScoreFail>
  <ScorePass>true</ScorePass>
  <ScoreUnscored>true</ScoreUnscored>
  <SearchText>sample string 1</SearchText>
  <SpaceGroupID>1</SpaceGroupID>
  <SpaceGroupIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SpaceGroupIDs>
  <SpaceID>1</SpaceID>
  <SpaceTypeDescription>sample string 3</SpaceTypeDescription>
  <State>sample string 5</State>
  <StateCode>sample string 6</StateCode>
  <TemplateDescription>sample string 4</TemplateDescription>
  <WorkerID>1</WorkerID>
</FilterInspection>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FilterInspection'.

Response Information

Resource Description

A list of Inspections

Collection of SimpleInspection
NameDescriptionTypeAdditional information
ID

integer

None.

ScheduledDate

date

None.

AccountID

integer

None.

Template

string

None.

TemplateID

integer

None.

AssetNumber

string

None.

Space

string

None.

WorkRequestID

integer

None.

SpaceID

integer

None.

IsTour

boolean

None.

SpacePath

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "ScheduledDate": "2024-05-18T06:33:11.5162703Z",
    "AccountID": 2,
    "Template": "sample string 3",
    "TemplateID": 4,
    "AssetNumber": "sample string 5",
    "Space": "sample string 6",
    "WorkRequestID": 1,
    "SpaceID": 1,
    "IsTour": true,
    "SpacePath": "sample string 8"
  },
  {
    "ID": 1,
    "ScheduledDate": "2024-05-18T06:33:11.5162703Z",
    "AccountID": 2,
    "Template": "sample string 3",
    "TemplateID": 4,
    "AssetNumber": "sample string 5",
    "Space": "sample string 6",
    "WorkRequestID": 1,
    "SpaceID": 1,
    "IsTour": true,
    "SpacePath": "sample string 8"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSimpleInspection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <SimpleInspection>
    <AccountID>2</AccountID>
    <AssetNumber>sample string 5</AssetNumber>
    <ID>1</ID>
    <IsTour>true</IsTour>
    <ScheduledDate>2024-05-18T06:33:11.5162703+00:00</ScheduledDate>
    <Space>sample string 6</Space>
    <SpaceID>1</SpaceID>
    <SpacePath>sample string 8</SpacePath>
    <Template>sample string 3</Template>
    <TemplateID>4</TemplateID>
    <WorkRequestID>1</WorkRequestID>
  </SimpleInspection>
  <SimpleInspection>
    <AccountID>2</AccountID>
    <AssetNumber>sample string 5</AssetNumber>
    <ID>1</ID>
    <IsTour>true</IsTour>
    <ScheduledDate>2024-05-18T06:33:11.5162703+00:00</ScheduledDate>
    <Space>sample string 6</Space>
    <SpaceID>1</SpaceID>
    <SpacePath>sample string 8</SpacePath>
    <Template>sample string 3</Template>
    <TemplateID>4</TemplateID>
    <WorkRequestID>1</WorkRequestID>
  </SimpleInspection>
</ArrayOfSimpleInspection>