apic docs
  • About APIC
  • Installing APIC
  • Getting started with APIC
  • Designer
    • Getting Started With APIC designer
    • Working with API project
    • Creating a Folder
    • Creating a Model or Definitions
    • Creating a Trait
    • Creating an Endpoint
    • Write API Tests starting from Design Phase
    • API Security Definitions
    • Export and view Docs
  • Tester
    • Make an API call
    • Sending Forbidden request headers with APIC
    • Viewing API Response
    • Managing Environments
    • Using Environments
    • Using the Test Builder
    • Writing Test Cases
    • Response Schema validation
    • Creating Test Suites
    • Test Websocket
  • Test Real User Sessions
  • APIC Command line interface (apic-cli)
  • APIC Web Agent (apic-cli)
  • APIC CI/CD Integration (with Jenkins)
  • API Documentation
  • Simulator
  • Dashboard
    • Team Management
    • Published Docs
  • Sharing
Powered by GitBook
On this page
  • Example
  • What's next?

Was this helpful?

  1. Designer

Creating a Model or Definitions

PreviousCreating a FolderNextCreating a Trait

Last updated 5 years ago

Was this helpful?

Have a schema that you want to reuse in multiple places? Create a Model. Models represent schema objects that allow the definition of input and output data types. Should be used to reduce duplication. Models can be reused with in another models, in traits or with endpoints. Use $ref to refer an existing model. Models are exactly like definitions as specified by Swagger.

You can create a Model by clicking on the Models option in your Project Home page which will open a view as shown below to fill in the details and create your Model.

Example

Lets create a ToDo modes with the schema shown above and we will put it under Models folder.

What's next?

Next we will .

create some generic response patterns or traits