ThingWorx REST API > ThingWorx REST 設計
ThingWorx REST 設計
術語
描述
選用
http action
GET、PUT、DELETE、POST
scheme
http、https
host
ThingWorx 執行所在的電腦名稱
port
Web 伺服器聆聽請求所在的埠
yes
entity collection
其中一個內建實體集合類型。請參閱下表。
entity
用來識別特定特性的名稱
characteristic collection
例如 PropertyDefinitionPropertiesVTQThingNameServiceDefinition 等名稱。請參閱下表。
characteristic
accept header
所請求 HTTP 內容的格式;必須是 application/json、text/xml、text/html 或 text/csv
yes
content type header
所提供 HTTP 內容的格式;必須是 application/json、text/csv、text/
必要
content
yes
query parameters
yes
內建集合值
ThingWorx 有一份實體集合的有限清單。每個實體集合均包含屬於各類型的實體 (比如物件) (例如,/Users 包含所有使用者)。
實體集合類型
實體類型
URL
應用程式金鑰
/Thingworx/ApplicationKeys
驗證器
/Thingworx/Authenticators
儀表板
/Thingworx/Dashboards
資料形式
/Thingworx/DataShapes
資料標籤
/Thingworx/DataTags
目錄服務
/Thingworx/DirectoryServices
當地語系化表
/Thingworx/LocalizationTables
記錄
/Thingworx/Logs
混搭
/Thingworx/Mashups
* 
對主物件、混搭範本及小工具實體有效。
功能表
/Thingworx/Menus
媒體
/Thingworx/MediaEntities
模型標籤
/Thingworx/ModelTags
網路
/Thingworx/Networks
通知內容
/Thingworx/NotificationContents
通知定義
/Thingworx/NotificationDefinitions
組織
/Thingworx/Organizations
持續性提供者
/Thingworx/PersistenceProviders
專案
/Thingworx/Projects
資源
/Thingworx/Resources
樣式定義
/Thingworx/StyleDefinitions
樣式主題
/Thingworx/StyleThemes
狀態定義
/Thingworx/StateDefinitions
子系統
/Thingworx/Subsystems
物件
/Thingworx/Things
* 
對 wiki、部落格、值串流、串流、資料表、工業連線及整合連接器物件有效。
物形式
/Thingworx/ThingShapes
物範本
/Thingworx/ThingTemplates
使用者
/Thingworx/Users
使用者群組
/Thingworx/Groups
特性集合
特性類型
URL
內容
/Thingworx/Things/ThingName/Properties
內容定義
/Thingworx/Things/ThingName/PropertyDefinitions
PropertiesVTQ (ValueTimeQuality)
/Thingworx/Things/ThingName/PropertiesVTQ
物件名稱
/Thingworx/Things/ThingName
服務定義
/Thingworx/Things/ThingName/ServiceDefinitions
相關連結