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. Go to the Metadata tab.

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

    Usually, this is the 'edmx' namespace. However, using the 'edmx' namespace is not mandatory. Your resource may use a different namespace.
    You can select Test to see if the data is valid.
  4. Go to the Dataset tab.

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

    Result: The Dataset dialog opens.

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

  7. Select Save.

  8. Select the dataset you added.

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

  10. Select Save.

    You can select Test to see if the data is valid.

Results

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