Backend resource · STATIC DECLARATIONS
Inventory Item API reference · mansoq-core
Static source contract for Inventory Item: 2 declared or inherited operation mappings, schema/field evidence and authorization/refusal references. Deployment and behavioral review remain explicit.
Static API contract — behavior review pending. Source baseline f6e9f05f76d4.
Enable JavaScript to inspect structured operation, parameter, schema and permission evidence. Download this reference and its evidence.
Declared route and availability
This resource is declared in mansoq-core at /api/v1/facility/{facility_external_id}/location/{location_external_id}/product/. verified core mount in config/urls.py A registered path and an indexed handler do not prove deployment availability, user permission or production readiness.
Operation map
| Method | Path | Action | Evidence |
|---|---|---|---|
| GET | /api/v1/facility/{facility_external_id}/location/{location_external_id}/product/ |
list | declared/inherited method |
| GET | /api/v1/facility/{facility_external_id}/location/{location_external_id}/product/{external_id}/ |
retrieve | declared/inherited method |
list · GET
GET /api/v1/facility/{facility_external_id}/location/{location_external_id}/product/ — action list. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | facility_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
| path | location_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| query | include_children |
not declared at read site | not established |
response: InventoryItemReadSpec. Declared fields below; inherited fields are retained in the schema inventory.
| Field | Type | Required | Constraints |
|---|---|---|---|
| meta | dict | false | No extra constraint extracted |
| id | UUID4 | None | false | No extra constraint extracted |
| status | InventoryItemStatusOptions | true | No extra constraint extracted |
| net_content | Decimal | true | No extra constraint extracted |
| product | dict | true | No extra constraint extracted |
| location | dict | true | No extra constraint extracted |
Observed authorization checks: can_list_location_inventory_item. Helper/queryset evidence is included; this is not proof of complete security review.
Declared refusal/error evidence: PermissionDenied: You do not have permission to read inventory items.
retrieve · GET
GET /api/v1/facility/{facility_external_id}/location/{location_external_id}/product/{external_id}/ — action retrieve. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | facility_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
| path | location_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
| path | external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| query | include_children |
not declared at read site | not established |
response: InventoryItemRetrieveSpec. Declared fields below; inherited fields are retained in the schema inventory.
| Field | Type | Required | Constraints |
|---|---|---|---|
| meta | dict | false | No extra constraint extracted |
| id | UUID4 | None | false | No extra constraint extracted |
| status | InventoryItemStatusOptions | true | No extra constraint extracted |
| net_content | Decimal | true | No extra constraint extracted |
| product | dict | true | No extra constraint extracted |
| location | dict | true | No extra constraint extracted |
Observed authorization checks: can_list_location_inventory_item. Helper/queryset evidence is included; this is not proof of complete security review.
Declared refusal/error evidence: ValidationError: Inventory item does not belong to the specified location; PermissionDenied: You do not have permission to read inventory items.
Integration review checklist
Confirm the installed route and full schema; review authentication, organization/facility scoping, all accepted fields, value-state and date/time semantics, idempotency, pagination, response/exception branches and the allowed correction/reversal workflow. Test positive and negative cases with synthetic data. This source reference does not establish external certification or replace an illustrated user procedure.
Pinned source evidence
Links require access to the private source repository.
- repositories/platform/mansoq-core/config/api_router.py:525
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/inventory/inventory_item.py:31
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/base.py:168
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/inventory/inventory_item.py:65
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/base.py:161
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/inventory/inventory_item.py:45
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/inventory/inventory_item.py:50
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/base.py:330
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/base.py:158
- repositories/platform/mansoq-core/mansoq/emr/resources/inventory/inventory_item/spec.py:33
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/base.py:83
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/inventory/inventory_item.py:56
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/base.py:325
- repositories/platform/mansoq-core/mansoq/emr/api/viewsets/base.py:77
- repositories/platform/mansoq-core/mansoq/emr/resources/inventory/inventory_item/spec.py:47