Skip to content

[FEATURE] - Additional device API endpoints. #151

Description

@bitbound

New endpoints needed.

Example Endpoint 1 (all devices, smaller payload):

IReadOnlyList<DeviceResponseShortDto> IDevicesApi.GetAllDevicesShort();

record DeviceResponseShortDto(
    string Id,
    DateTimeOffset LastSeen,
    string AgentVersion
);

Example Endpoint 2 (bulk delete):

DeleteManyDevicesResult IDevicesApi.DeleteManyDevices(IEnumerable<string> ids);

record DeleteManyDevicesResult(
    IReadOnlyList<string> SuccessIds,  // devices that existed and were successfully deleted
    IReadOnlyList<string> FailureIds   // devices that could not be deleted
);

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status
Planned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions