Listing Mock APIs
You can list your mock APIs using:Options
The list command supports several options to customize the output:--limit=<int>- Set the maximum number of mock APIs to return (default: 20)--page=<int>- Select which page of results to show (default: 1)--query=<text>- Filter mock APIs using a search query-o, --output=(text|json)- Choose between text or JSON output format (default: text)
Examples
List first 5 mock APIs:Creating Mock APIs
You can create a new mock API using:Options
The create command supports the following options:-o, --hostname=<text>- Optional custom hostname for the mock API-t, --type=(REST|Unstructured|gRPC|GraphQL)- Type of the mock API (default: REST)
Examples
Create a new mock API calledNewName
GraphQL
Unstructured with a custom hostname
Delete a mock API
You can delete a new mock API using:Options
The delete command supports the following options:-f, --force- Force delete the mock API without confirmation
Examples
Delete a mock API with IDv16kg
v16kg