Nav

To Design a Data Type

Requires November 2017 Release

This procedure builds on the procedure to design the RAML root in visual design mode. In this procedure, you define a data type for the base URI parameter {num}. The data type specifies a minimum and maximum, 1 and 5 to match the post IDs of the data you can get from the JSONPlaceholder service.

  1. In the navigation pane, click +Create and select Data Type.

  2. In Name, replace the default. Type numparam.

  3. In Type, select Integer.

  4. In Description, type Data type for the {num} parameter.

  5. In Minimum, select 1.

  6. In Maximum, select 5.

  7. Accept the other defaults.

  8. Click placeholder in the left navigation area, and in API Summary, change the type of the Base URI parameter to numparam.

    numparam

Next, design a resource.

In this topic: