GET api/Inspection/templatesfull

Gets a list of Inspection Templates that may be used to create a new inspection

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of Templates

InspectionTemplatesFull
NameDescriptionTypeAdditional information
Templates

Collection of InspectionTemplate

None.

TemplateQuestions

Collection of InspectionTemplateQuestion

None.

TemplateQuestionAuditItems

Collection of InspectionTemplateQuestionAuditItem

None.

TemplateQuestionComments

Collection of InspectionTemplateQuestionComment

None.

TemplateAttributes

Collection of InspectionTemplateAttribute

None.

TemplateSpaceGroups

Collection of InspectionTemplateSpaceGroup

None.

Attributes

Collection of InspectionAttribute

None.

AttributeChoices

Collection of InspectionAttributeChoice

None.

ScoreTypes

Collection of InspectionScoreType

None.

ScoreChoices

Collection of InspectionScoreTypeChoice

None.

Comments

Collection of SimpleItem

None.

AuditItems

Collection of InspectionAuditItem

None.

FailureCodes

Collection of InspectionFailureCode

None.

FailureCodeCorrectiveActions

Collection of InspectionFailureCodeCorrectiveAction

None.

SpaceGroups

Collection of SimpleItem

None.

DefaultAuditItems

InspectionAuditItem

None.

AllAuditItems

Collection of InspectionAuditItem

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Aramark.ISIS.Domain.Models.InspectionTemplateQuestion'. Path 'Templates[0].Questions[0].FollowUpQuestions'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Aramark.ISIS.Domain.Models.InspectionTemplateQuestion'. Path 'Templates[0].Questions[0].FollowUpQuestions'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Aramark.ISIS.Domain.Models.InspectionTemplateQuestion, Aramark.ISIS.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Aramark.ISIS.Domain.Models.InspectionTemplateQuestion, Aramark.ISIS.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.