Generate Schemas from JSON etc.
Generate from JSON etc.
, you enter the data structure import tool.JSON
, XML
, JSON Schema
and Import from Database
, and Apidog will automatically generate a schema based on that data.Generate from JSON/XML
required
.Overwrite mode
Generated from JSON
for the second time , the newly imported data will overwrite the existing schema that has already been generated. In this scenario, there are two Overwrite modes
:Naming style
Save as example
Generate from JSON
in the Request body or Response, enabling Save as Example
will include the current JSON/XML as a Request/Response Example when generating the schema.Generate from JSON Schema
Import from database
Database connections
Set up the database connection. Learn more about Manage Database Connection.
MySQL
, SQL Server
, Oracle
, and PostgreSQL
databases, while the paid version also includes support for ClickHouse
, MongoDB
, and Redis
.
Select the database connection in
Import from database
.Select the tables to import.
Configure the import options. For specific configuration settings, refer to the previous sections on JSON/XML handling.
Follow database field length
toggle is enabled, Apidog will set the minimum and maximum property length values based on the field lengths defined in the table.Enter SQL(DDL)
CREATE
statement (DDL) to generate the schema. Support SQL that Compatible with MySQL.Modified atΒ 2024-11-27 07:32:13