774c860
Now allows setting the server as https with a certificate applied in the home directory. Use theprotocol
to enable the search for the SSL certificate.
0ba82b7
Add API to pass in a page route for the default simulation helper page. This allows for those services which define a valid route returned at the root.
34ecabd
Fixexports
inpackage.json
andtsconfig.json
with ESM for improved compatibility withpnpm
.
07e0560
Based on handlerreturn
versusresponse.status().json()
and the newverbose
option, log out or return 502 on failed validation of response data based on OpenAPI schema.07e0560
Addverbose
option to enable contextual logging for debugging purposes.
6a6fc71
Due to upstream dep requirements, thereact-redux
depends onreact-dom
. Including it as a dependency to resolve this issue, but we will work to remove it from the dependency chain as that code path is not utilized in this library.
ab1c616
All routes now add a log to the simulation state on every visit. This assists in tracking hits on each simulation route.ad2dbc9
To improve transparency and flexibility, we now include a page at the root that lists all of the routes, and the ability to signal which response to return.f20a3a6
(#283) We now support serving a directly of JSON files through file path routing. UseserveJsonFiles
to specify the folder which contains the files to serve.
209ffa5
Add API to configure a delay of all responses with a set interval. Using this in a simulator would enable a feel closer to a real external endpoint.e9c7fed
Add option the proxy to real API and save JSON responses in./src/serve
directory.
58ae1d9
This simulator is a base to iteratively build a simulator for use in published simulators in@simulacrum
scope or custom implementations elsewhere. This includes the components likely to be used in each simulator (server, router, data store) and pieces to enable quickly spinning up a simulator to get started as through an OpenAPI spec.