GET api/Village/{village}/Checklists/{categoryId}?depth={depth}
Returns a list of Checklists in the specified category, to the specified depth, with Village data
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
categoryId |
The category from which to retrieve checklists |
globally unique identifier |
Required |
depth |
Depth of tree. Values can be List or Item. Category is not permitted, and will be treated as List |
ChecklistDepth |
Default value is List |
village | string |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of VillageChecklistModelName | Description | Type | Additional information |
---|---|---|---|
TotalItems |
Total number of items in this checklist |
integer |
None. |
ItemsCompleted |
Total number of items completed in this checklist |
integer |
None. |
Items |
List of items in this checklist |
Collection of VillageChecklistItemModel |
None. |
VillageId |
Village ID |
globally unique identifier |
None. |
Id |
Unique ID |
globally unique identifier |
None. |
Name |
Name |
string |
None. |
Description |
Description |
string |
None. |
Url |
Navigation URL |
string |
None. |
Sequence |
Sequence in which this item should be displayed |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "TotalItems": 1, "ItemsCompleted": 2, "Items": [ { "Status": 0, "VillageId": "85a8ecf6-1dde-4646-88d5-24f10a1c28d3", "Id": "badda742-0684-4422-b25e-47dac633e49e", "Name": "sample string 3", "Description": "sample string 4", "Url": "sample string 5", "Sequence": 6 }, { "Status": 0, "VillageId": "85a8ecf6-1dde-4646-88d5-24f10a1c28d3", "Id": "badda742-0684-4422-b25e-47dac633e49e", "Name": "sample string 3", "Description": "sample string 4", "Url": "sample string 5", "Sequence": 6 } ], "VillageId": "57253fff-6d5a-4d9e-956f-03749b4835e9", "Id": "45e48e6b-4465-4e81-bb0a-cb39ad0ebb0b", "Name": "sample string 5", "Description": "sample string 6", "Url": "sample string 7", "Sequence": 8 }, { "TotalItems": 1, "ItemsCompleted": 2, "Items": [ { "Status": 0, "VillageId": "85a8ecf6-1dde-4646-88d5-24f10a1c28d3", "Id": "badda742-0684-4422-b25e-47dac633e49e", "Name": "sample string 3", "Description": "sample string 4", "Url": "sample string 5", "Sequence": 6 }, { "Status": 0, "VillageId": "85a8ecf6-1dde-4646-88d5-24f10a1c28d3", "Id": "badda742-0684-4422-b25e-47dac633e49e", "Name": "sample string 3", "Description": "sample string 4", "Url": "sample string 5", "Sequence": 6 } ], "VillageId": "57253fff-6d5a-4d9e-956f-03749b4835e9", "Id": "45e48e6b-4465-4e81-bb0a-cb39ad0ebb0b", "Name": "sample string 5", "Description": "sample string 6", "Url": "sample string 7", "Sequence": 8 } ]
application/xml, text/xml
Sample:
<ArrayOfVillageChecklistModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <VillageChecklistModel> <Description>sample string 6</Description> <Id>45e48e6b-4465-4e81-bb0a-cb39ad0ebb0b</Id> <Name>sample string 5</Name> <Sequence>8</Sequence> <Url>sample string 7</Url> <VillageId>57253fff-6d5a-4d9e-956f-03749b4835e9</VillageId> <Items> <VillageChecklistItemModel> <Description>sample string 4</Description> <Id>badda742-0684-4422-b25e-47dac633e49e</Id> <Name>sample string 3</Name> <Sequence>6</Sequence> <Url>sample string 5</Url> <VillageId>85a8ecf6-1dde-4646-88d5-24f10a1c28d3</VillageId> <Status>NA</Status> </VillageChecklistItemModel> <VillageChecklistItemModel> <Description>sample string 4</Description> <Id>badda742-0684-4422-b25e-47dac633e49e</Id> <Name>sample string 3</Name> <Sequence>6</Sequence> <Url>sample string 5</Url> <VillageId>85a8ecf6-1dde-4646-88d5-24f10a1c28d3</VillageId> <Status>NA</Status> </VillageChecklistItemModel> </Items> <ItemsCompleted>2</ItemsCompleted> <TotalItems>1</TotalItems> </VillageChecklistModel> <VillageChecklistModel> <Description>sample string 6</Description> <Id>45e48e6b-4465-4e81-bb0a-cb39ad0ebb0b</Id> <Name>sample string 5</Name> <Sequence>8</Sequence> <Url>sample string 7</Url> <VillageId>57253fff-6d5a-4d9e-956f-03749b4835e9</VillageId> <Items> <VillageChecklistItemModel> <Description>sample string 4</Description> <Id>badda742-0684-4422-b25e-47dac633e49e</Id> <Name>sample string 3</Name> <Sequence>6</Sequence> <Url>sample string 5</Url> <VillageId>85a8ecf6-1dde-4646-88d5-24f10a1c28d3</VillageId> <Status>NA</Status> </VillageChecklistItemModel> <VillageChecklistItemModel> <Description>sample string 4</Description> <Id>badda742-0684-4422-b25e-47dac633e49e</Id> <Name>sample string 3</Name> <Sequence>6</Sequence> <Url>sample string 5</Url> <VillageId>85a8ecf6-1dde-4646-88d5-24f10a1c28d3</VillageId> <Status>NA</Status> </VillageChecklistItemModel> </Items> <ItemsCompleted>2</ItemsCompleted> <TotalItems>1</TotalItems> </VillageChecklistModel> </ArrayOfVillageChecklistModel>