xapi-logo
Solutions icon
Features icon
Resources and Support icon
PricingXapi HubPublic Editor xapi editor
Start Xapi For Free
User Guides
API Models
Create

Creating API models

The organization owner, organization admins, API designers, and API reviewers can create API design versions in authorized organizations and projects (if exist). Depending on the created location, the API model will be visible in the corresponding catalog.

You can either create API models from scratch or import a predefined API model.

💡

Before you begin:

  1. Sign in to Xapi.
  2. Navigate to the organization or project where you wish to create your API model.

Manually creating API models

To create a new API model:

  1. On the top bar, click CREATE > API model > New model.


    New model menu-item

    Note that the New API model dialog appears.


    API model details entry
  2. Under DETAILS, enter API model details as given below.

    📃

    Note: Fields marked with an asterisk (*) are mandatory.

    FieldDescriptionSample Value
    Open API version*This is the OpenAPI specification version that will be applicable to your API model.3.1
    API version*This is to identify the API model version.1.0
    API model name*This uniquely identifies the API model within the corresponding catalog.WeatherAPI Model
    Project*This identifies the project under which the API model is created.
    💡
    Tip:
    • - If the API model is created under a default organization, this will be set to default project.
    • - If the API model is created under a project, this will be set to the corresponding project name.
    default project
    Collection path*This is the catalog under which the API model is created.Orders Catalog
    Format*This defines the format in which your API model data will be structured.
    • - JSON
    • - YAML
    JSON
    Protocol*This defines the protocol that your API model will use to communicate.
    • - REST
    REST
    DescriptionThis describes your API model purpose.This is a private API located in the Weather Catalog.
    API tags*This is to classify your API model. Depending on the tags selected, the API model can be filtered in API Hub.Weather
  3. Click Next.

  4. Under AVATAR, you may either upload an avatar or select an existing avatar.


    New API model avatar selection
  5. Click Next.

  6. Under REVIEW, review the entered API model details.


    API model details review
    💡

    Tip: You may change the entered API model details by going back to the previous tab.

  7. Click Create API model. Upon successfully creating the API model, note that:

    • You will be navigated to the editor view of your API model.
    • Your new API model will appear in the respective dashboard.
    • All authoriezd members will be notified via Activity Stream.

Importing existing API models

To import a pre-designed API model:

  1. On the top bar, click CREATE > API > Import model.


    Import API model menu-option

    Note that the Import API model dialog appears.


    Imported API import details entry
  2. You may perform either of the following:

    • OPTON A: Drag and drop or browse the API model file.
      📃

      Note: Only the YAML and JSON file formats are allowed.

    • OPTON B: Enter the corresponding base URL of the API model.
  3. Click Import. Note that the New Import API Model dialog appears.


    Imported API details entry
  4. Under DETAILS, update API model details as given below.

    📃

    Note:

    • Fields marked with an asterisk (*) are mandatory.
    • Fields marked with two asterisks (**) are not editable.
    FieldDescriptionSample Value
    Imported API**This is the imported API model nameWeatherAPI.json
    Open API version*This is the OpenAPI specification version that will be applicable to your API model.3.1
    API model version*This is to identify the API model version.1.0
    API model name*This uniquely identifies the API model within the corresponding catalog.Weather API
    Project**This identifies the project under which the API model is created.
    💡
    Tip:
    • - If the API is created under a default organization, this will be set to default project.
    • - If the API is created under a project, this will be set to the corresponding project name.
    default project
    Collection path*This is the catalog under which the API model is created.Weather Catalog
    Format**This defines the format in which your API model data will be structured.
    • - JSON
    • - YAML
    JSON
    Protocol**This defines the protocol that your API model will use to communicate.
    • - REST
    REST
    DescriptionThis describes your API model purpose.This is a private API located in the Weather Catalog.
    API tags*This is to classify your API model. Depending on the tags selected, the API model can be filtered in API Hub.Weather
  5. Click Next.

  6. Under AVATAR, you may either upload an avatar or select an existing avatar.


    Imported API model avatar selection
  7. Click Next.

  8. Under REVIEW, review the entered API model details.


    Imported API model details review
    💡

    Tip: You may change the entered API model details by going back to the previous tab.

  9. Click Create API model. Upon successfully creating the API model, note that:

    • You will be navigated to the editor view of your API model.
    • Your new API model will appear in the respective dashboard.
    • All authoriezd members will be notified via Activity Stream.