Skip to content

Commit 5e11691

Browse files
committed
Feature: add multi operationId lookups
- add operationId listing endpoints for all multi captures - persist and filter records by canonical operation name - switch multi capture URL paths to operationId - remove accidental device block from operationId responses - add pytest coverage for route registration and filtering - 2026-03-16 01:11:00
1 parent f1224fd commit 5e11691

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/pypnm/api/routes/advance/common/schema/common_capture_schema.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pypnm.api.routes.advance.common.operation_kind import MultiCaptureOperationModel
99
from pypnm.api.routes.common.classes.common_endpoint_classes.common_req_resp import (
1010
CableModemPnmConfig,
11-
CommonResponse,
1211
)
1312
from pypnm.api.routes.common.classes.common_endpoint_classes.schema.base_response import (
1413
BaseDeviceResponse,
@@ -55,7 +54,9 @@ class MultiCapturePersistedRecordModel(BaseModel):
5554
metadata: MultiCapturePersistedMetadataModel = Field(default_factory=MultiCapturePersistedMetadataModel, description="Additional persisted metadata such as MAC address and system description.")
5655

5756

58-
class MultiCaptureOperationIdResponse(CommonResponse):
57+
class MultiCaptureOperationIdResponse(BaseModel):
5958
"""Collection of persisted operation records keyed by operation ID."""
6059

60+
status: str | None = Field(default="success", description="Overall status for the operation-record listing request.")
61+
message: str | None = Field(default=None, description="Additional information or error details for the operation-record listing request.")
6162
operations: dict[OperationId, MultiCapturePersistedRecordModel] = Field(default_factory=dict, description="Persisted operation records keyed by operation ID for the requested operation family.")

0 commit comments

Comments
 (0)