ExperimentSchema controller
Methods
(static) list(req, res)
Fetch all available ExperimentSchemas.
The database is queried for all ExperimentSchema documents. These are
used as the JSON response.
Parameters:
| Name | Type | Description |
|---|---|---|
req |
http.ClientRequest | |
res |
http.ServerResponse |
(static) random(req, res)
'Build' a proper experiment from one of the available ExperimentSchemas.
A random ExperimentSchema is fetched from the database. The
ExperimentSchema model's buildDocument() method is used to build out
this experiment, and that experiment is used as the JSON response.
Parameters:
| Name | Type | Description |
|---|---|---|
req |
http.ClientRequest | |
res |
http.ServerResponse |