Skip to content

Martini Data Models Creating/Deleting

Overview

Martini offers several methods to create Data Models. You can create a model: - From scratch - From an existing model, including: - Existing Data Model - JSON String/File - JSON Schema - XML String/File - XML Schema - YAML String/File

Creating a Data Model

Procedure

  1. Launch the Data Model Wizard:
    • Right-click on the code folder in your Martini package, then select New > Data Model.
  2. Enter Model Details:
    • Name your Data Model and select the source type.
  3. Provide Source Content:
    • If not creating from scratch, input the source’s content according to the chosen type.
  4. Complete the Wizard:
    • Click Finish. The model appears under the Navigator view.

From Scratch

  • Right-click on the canvas of the created Data Model.
  • Select the type of property to add.

From an Existing Data Model

  • Specify the model's location via URL or file system.
  • Alternatively, copy and paste models in the Navigator view.

From a JSON String/File

  • In Martini, use the Import button for file or URL sources.
  • Copy and paste the string in the text area.

From a JSON Schema

  • Enter its URL or locate it in the file system.

From an XML String/File

  • Copy and paste the string in the text area.
  • Use the Import button for file or URL sources in Martini.

From an XML Schema

  • Specify its location via URL or file system.

From a YAML String/File

  • Copy and paste the string in the text area.
  • Use the `Import’ button for file or URL sources in Martini.

Deleting Data Models

  1. Locate the Data Model:
    • Find the Data Model in the Navigator view.
  2. Delete:
    • Right-click on the model and select Delete.
  3. Confirm Deletion:
    • Confirm the action in the dialog box. Be aware this cannot be undone.