Swagger to Schema

You can specify a Swagger JSON file or a Swagger 2.0 URL endpoint to convert to  @schema definition using the SwaggerToSchema GitHub command line utility (CLI). The SwaggerToSchema CLI attempts to identify all entities and attributes and guess parent-child relationship roles. The utility ensures that your new schema can work correctly by inserting the ident primary key into each table.
lac40
You can specify a Swagger JSON file or a Swagger 2.0 URL endpoint to convert to
CA Live API Creator
 
@schema
definition using the SwaggerToSchema GitHub command line utility (CLI). The SwaggerToSchema CLI attempts to identify all entities and attributes and guess parent-child relationship roles. The utility ensures that your new schema can work correctly by inserting the
ident
primary key into each table.
You can modify the definitions before importing your model (JSON file) as a schema in a managed database.
For more information about the SwaggerToSchema CLI, including how to use it, see the GitHub site.
Create your Schema and API
Prerequisites:
  • You have added a managed data server in API Creator and it is active.
  • You have created your model using the SwaggerToSchema CLI.
For more information about how to add a managed data server, see Managed Data Server Administration.
Follow these steps:
  1. Create your API in API Creator using the 
    Model-first
     approach.
    For more information about this approach, see Create your API.
  2. Select the managed data server that you want to use to create your database, and then click 
    Create
    .
    A default API is created and its associated database is created.
  3. Click 
    Proceed to Schema
    .
    The Schema page appears.
  4. Click
    Import Schema
    and select your model.
Your schema is created from a Swagger document.