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
- Launch the Data Model Wizard:
- Right-click on the
code
folder in your Martini package, then selectNew > Data Model
.
- Right-click on the
- Enter Model Details:
- Name your Data Model and select the source type.
- Provide Source Content:
- If not creating from scratch, input the source’s content according to the chosen type.
- Complete the Wizard:
- Click
Finish
. The model appears under the Navigator view.
- Click
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
- Locate the Data Model:
- Find the Data Model in the Navigator view.
- Delete:
- Right-click on the model and select
Delete
.
- Right-click on the model and select
- Confirm Deletion:
- Confirm the action in the dialog box. Be aware this cannot be undone.