Published Detail / 購物車庫存預留

檢視目前已發布的 EntityType,必要時可回到原始 draft 重新調整。

Type Code
SHP01T204
EntityTypeId: 26
Published Version
1
Approved: 1
Published Source
Effective EntityType
Review: Approved
Published 摘要
目前有效發布內容與來源查詢設定。
Effective Definition
Active
API Exposed
Source Query
RootTableName: SHP01T204
RootAlias: M
Active Aliases: M
DefaultWhere: (none)
Review 資訊
保留送審與核准紀錄,方便追蹤發布來源。
Submitted
N/A
Reviewed
N/A
Comment
N/A
API 測試(Try it out)
直接呼叫 projection 查詢 API,對讀取複本即時查詢並顯示回傳結果,類似 Swagger。
GET
GET /metadata/projection-data
依已發佈 metadata 組來源 SQL 查讀取複本(ReadReplicaDb),欄位別名=AttributeCode。
參數 位置 型別 必填 說明
entityName query string 必填 EntityType 的 TypeCode,此處=SHP01T204
json query object 必填 等值過濾條件 JSON 物件,至少一個條件;key 限下方 active 欄位的 AttributeCode。
version query string 選填 指定發佈版本;留空=最新 active 版本。歷史版本需填該版號。
可過濾 / 回傳欄位(active attributes)
AttributeCode DataType Flags
ShoppingCartInventoryReservationId string PK Required
ShoppingCartId string Required
Sku string Required
MaterialsID string Required
Quantity int Required
Status string Required
ExpiresAt datetime Required
必須是 JSON 物件,至少一個條件;key 僅限上方 active 欄位的 AttributeCode。
Request URL

            
curl

            
Response
(按 Execute 後顯示回傳結果)
Attributes
published entity type 的欄位定義。
Code Name DataType Flags
ExpiresAt ExpiresAt datetime Required Active
MaterialsID MaterialsID string Required Active
Quantity Quantity int Required Active
ShoppingCartId ShoppingCartId string Required Active
ShoppingCartInventoryReservationId ShoppingCartInventoryReservationId string PK Required Active
Sku Sku string Required Active
Status Status string Required Active