Returns DHCP events for a specific device with filtering support
GET /api/history/device/{mac}/events
Auto-generated from server.go. Handler: s.getDeviceHistory.
Supports format=csv query param for CSV export — the operation
carries x-validation: skip (D-120) because the CSV branch is not
JSON.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
aa:bb:cc:dd:ee:ffFull MAC address with colon or hyphen separators.
Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Successful response
Returns DHCP events for a specific device with filtering support.
Schema hand-rewritten in Session 10 to share the HistoryEventItem
component (events array now $refs HistoryEventItem rather than
redeclaring inline). The original Session-6 lift carried an inline
events item that was a strict subset of the Go HistoryEventItem
(missing all DHCPv6 omitempty fields). The shared component carries
the full field set with omitempties marked optional.
object
object
RFC3339 string emitted by handler time.Time.Format.
RFC3339 string emitted by handler time.Time.Format.
object
object
Omitempty in Go.
object
A single DHCP event row from history. Many fields are optional
(omitempty in Go) — DHCPv6 fields are only present for v6 events,
DHCPv4 packet fields only for v4 events. Required fields below are
those the lift saw populated in the seed sample; treat the rest as
optional.
Hand-extracted in Session 10 from internal/api/models.go::HistoryEventItem
so both /api/history/events and /api/history/device/{mac}/events can
reference the same shape.
object
RFC3339Nano formatted; emitted by handler as string.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
DHCPv6 only; omitempty.
object
Dynamic map keyed by DHCP message type.
object
Omitempty in Go — present only when at least one event matched.
Omitempty in Go.
DHCPv6 IA / option detail extracted from the most-recent v6 packet in the window. omitempty in Go; absent for v4 devices.
object
Authentication is required or the supplied token is invalid.
Standardised error envelope per RFC 7807. Many existing endpoints still
return an older shape (e.g. {"error": "..."}). This schema documents the
target shape; legacy endpoints will be migrated in Phase 70. Per D-21 the
spec describes current behaviour without enforcing the migration here.
object
A URI reference that identifies the problem type.
A short human-readable summary of the problem.
The HTTP status code generated by the origin server.
A human-readable explanation specific to this occurrence.
A URI reference that identifies the specific occurrence.
Legacy error message field. Will be removed once handlers are migrated.
Legacy per-field error details. Will be removed once handlers are migrated.
object
The request id middleware-assigned identifier for tracing.
The requested resource was not found.
Standardised error envelope per RFC 7807. Many existing endpoints still
return an older shape (e.g. {"error": "..."}). This schema documents the
target shape; legacy endpoints will be migrated in Phase 70. Per D-21 the
spec describes current behaviour without enforcing the migration here.
object
A URI reference that identifies the problem type.
A short human-readable summary of the problem.
The HTTP status code generated by the origin server.
A human-readable explanation specific to this occurrence.
A URI reference that identifies the specific occurrence.
Legacy error message field. Will be removed once handlers are migrated.
Legacy per-field error details. Will be removed once handlers are migrated.
object
The request id middleware-assigned identifier for tracing.
Internal server error
Standardised error envelope per RFC 7807. Many existing endpoints still
return an older shape (e.g. {"error": "..."}). This schema documents the
target shape; legacy endpoints will be migrated in Phase 70. Per D-21 the
spec describes current behaviour without enforcing the migration here.
object
A URI reference that identifies the problem type.
A short human-readable summary of the problem.
The HTTP status code generated by the origin server.
A human-readable explanation specific to this occurrence.
A URI reference that identifies the specific occurrence.
Legacy error message field. Will be removed once handlers are migrated.
Legacy per-field error details. Will be removed once handlers are migrated.
object
The request id middleware-assigned identifier for tracing.