读取类型
GET /ontology/v1/types/{name}
Read one registered type’s definition before writing a record of it, to learn whether it is a node or an edge, which endpoints an edge type admits, and which origins it accepts. The name comes from types.list; a name that is not registered answers ONTOLOGY_TYPE_UNKNOWN, and writes of that type are refused.
支持状态: supported
参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| name | path | string | true | A type name from types.list, with its dots preserved — a display label is not accepted. |
响应
HTTP 200
The registration that carries this type, with its kind and definition.
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| owner | string | Service that registered this type; a change to the type is checked against that registrant. |
| version | integer | Version of the registration this type came from, so a caller can tell when a definition moved on. |
| kind | string | Whether the type describes an entity or a fact, which decides whether it is used when creating a node or a relation. |
| definition | object | The full registered definition — the same object as the entry in its registration's nodes or edges array. |