Datome
  • Getting Started
    • Introduction
    • Quickstart Guide
    • Video Tutorial
  • Product Architecture
  • Writing Model
    • Model Syntax
    • Model Example
    • Model General Information
    • Keywords
  • Permissions
  • Model Example
    • Model Example
    • Model Analysis
  • Examples of API requests
  • Datome Specific Keywords
Powered by GitBook
On this page
  1. Writing Model

Model Example

In this example, the Model syntax is introduced via the exemplary creation of a Model describing a Fabric (e.g. silk).

If you create a Model via API, a Post request is sent to an endpoint like https://[your_organization].datome.io/api/models/fabric/. In this case, it will indicate that a new model named Fabric is being created. You will get a response with the following structure:

{
  "$id": "string",
  "$schema": "string",
  "additionalProperties": boolean,
  "description": "string",
  "label": "string",
  "properties": {},
  "required": [],
  "search": [],
  "states": {
    "default_state": "string"
  },
  "title": "string",
  "type": "object",
}
PreviousModel SyntaxNextModel General Information

Last updated 1 year ago