Get Lists
Use the GetLists call to generate a list of all the lists in your instance of WebEOC Nexus.
If you want to retrieve information for a specific list, including all its sub-lists, use the WebEOCListItem GetList endpoint, modifying the parameters as appropriate.
| Description | Returns a list of all lists in WebEOC Nexus |
|---|---|
| URL | /lists |
| Method | GET |
| Parameter |
none |
| Return Type | String array |
| Sample JSON Response | ["Event Reporting - Controller Review Status","Event Reporting - Event Type","Event Reporting - Priority","Folder Permissions","NIMS Typed Resources","Positions","Press Release Status","Resource List","Resource Request Status","Resource Unit of Measure","Road Priority","Road Status","Road Type","Schedule Status","Shelter Status"] |
Review the examples of how to use the WebEOCListItem GetList endpoint in JavaScript and C# calls.
Examples
JavaScript Call
Copy Code
await fetch(`${baseUrl}/lists`)
.then((response) => response.json())
C# Call
Copy Code
public async Task<string[]> GetLists()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var response = await httpClient.GetAsync($"{baseUrl}/lists");
var data = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<string[]>(data);
}
}
Related Concepts
Related Tasks