Defining a mock API
Last updated
Last updated
For a database, you define the mock API on the database API tab.
By default, the API tab contains an commented-out example mock API definition.
One option is to enter the mock API definition directly in the definition field.
For information on the API syntax, go to Mock API reference.
After you populate the definition, to save it, click Save.
To use use Fabricate AI to generate the mock API definition:
Click Compose with AI.
On the Compose with API panel, provide a description of the calls to include in the mock API, then click Generate.
To populate the mock API with the generated results, click Add to API.
On the API tab, to save the new definition content, click Save.