Nav

To Design a Data Type

This procedure builds on designing the RAML root in visual design mode. 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 big plus v.

  2. In Name, 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 jsonplaceholder in the left navigation area, and change the type of the Base URI parameter to numparam.

Next, design a resource.

In this topic: