Get Group Names
To review a list of all groups in WebEOC Nexus, use the GetGroupNames call.
Archived groups are not included in the list of group names retrieved using this method. To get archived groups, see Get Archived Group Names.
| Description | Returns a list of all groups in WebEOC Nexus |
|---|---|
| URL | /groups |
| Method | GET |
| Parameters |
None |
| Return Type | String array |
| Sample JSON Response | ["Board - After Action Review (Management)","Board - After Action Review (User)","Board - Checklist (Admin)","Board - Checklist (User)","Board - Damage Assessment (Edit)","Board - Damage Assessment (Read Only)","Board - Event Reporting - Activity Log (Controller)","Section - Command","Section - Finance","Section - Logistics","Section - Operations","Section - Planning"] |
Review the examples of how to use the GetGroupNames endpoint in JavaScript and C# calls.
Examples
JavaScript Call
Copy Code
await fetch(`${baseUrl}/groups`)
.then((response) => response.json())
C# Call
Copy Code
public async Task<string[]> GetGroupNames()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var response = await httpClient.GetAsync($"{baseUrl}/groups");
var data = await response.Content.ReadAsStringAsync();
return JsonConvert.DeserializeObject<string[]>(data);
}
}