Add data to an OData mock data artifact

In this topic, you learn how to add metadata and datasets to an OData mock data artifact.

Prerequisites

Procedure

  1. In OData Mock Data, open your artifact.

  2. Navigate to the Metadata tab.

  3. Paste the OData schema that you want to use as mock data in the editor.

    odata mock data metadata example
    Usually, this is the 'edmx' namespace. However, using the 'edmx' namespace is not mandatory. Your resource may use a different namespace.
    You can click Test to see if the data is valid.
  4. Navigate to the Dataset tab.

  5. On the Dataset toolbar, click + to add a new dataset.

    Result: The Dataset dialog opens.

  6. Enter a Name and Description that describe the dataset.

  7. Click Save.

  8. Click the dataset you added.

  9. In the editor, enter the OData for the dataset.

  10. Click Save.

    You can click Test to see if the data is valid.
    odata mock data dataset test

Results

  • You have added metadata and datasets to an OData artifact.