How to Generate Schemas from Samples

You can generate schemas from sample files, including JSON interchange format.

  1. In the Request section of the REST Operation Binding dialog, click the Define Schema for Native Format icon to the right of the Schema URL field. Figure 37-12 provides details.

    Figure 37-12 Define Schema for Native Format Icon

    Description of Figure 37-12 follows
    Description of "Figure 37-12 Define Schema for Native Format Icon"

    The Native Format Builder wizard is displayed.

  2. Proceed through the initial pages of the wizard until you access the Choose Type page.

    This page enables you to select to generate schemas from different format types. Figure 37-13 provides details.

    Figure 37-13 Types From Which to Generate Schemas

    Description of Figure 37-13 follows
    Description of "Figure 37-13 Types From Which to Generate Schemas"
  3. Select an appropriate type.

    Each type provides an area in which to paste a JSON, XML, or URL sample or select a sample file to import.

    For more information about JSON interchange formats, see What You May Need to Know About Converting a JSON Interchange Format to a REST Schema.