Skip to content

HTTP

Chimera supports a variety of flags to help you customize and control how the mock http API behaves.

Alt text for image

Path to your data.json or schema.json file.

Terminal window
chimera-cli --path ./data.json http

Run without any log generation

Terminal window
chimera-cli --path data.json --quiet http
  • Directoryproject/
    • data.json
    • chimera.log.2025-08-03
    • chimera.log.2025-08-04
    • chimera.log.2025-08-05

Specify the port Chimera runs on. Default is 8080.

Terminal window
chimera-cli --path data.json http --port 3000

Simulate network latency. This simulates a latency of 250ms

Terminal window
chimera-cli --path data.json http --latency 250

Enable pagination for large datasets. This sets the default number of items per page.

Terminal window
chimera-cli --path data.json http --page 10

--sort <route> <asc|desc> <attribute_in_route>

Section titled “--sort <route> <asc|desc> <attribute_in_route>”

Sort a specific route’s array by a key. Example:

Terminal window
chimera-cli --path data.json http --sort api/v2/data asc id

Use a schema definition to generate data.

Terminal window
chimera-cli --path ./schema.json http --auto_generate_data

Refer to Data Auto-Generation for Data Auto-Generation. Use a sample schema.json here


  • Directoryproject/
    • data.json
    • chimera.cors
Terminal window
chimera-cli --path data.json http --cors

CORS is enabled by default (allows all domains). Use this flag to allow only certain domains by adding only the allowed domains in a chimera.cors file. Use this sample chimera.cors here


Show all available flags for http.

Terminal window
chimera-cli http --help