Add API endpoint to retrieve survey configuration.

The endpoint /project/:project/configuration/:path(*)?
returns the contents of the survey configuration YAML
file for a given project.

To retrieve the full configuration:
 * /project/:project/configuration

To retrieve a specific subset (e.g., binning parameters):

 * /project/:project/configuration/binning

To retrieve a specific value (e.g., inline bin width):

 * /project/:project/configuration/binning/I_width
This commit is contained in:
D. Berge
2020-08-16 10:06:43 +02:00
parent 9197c2c12d
commit 2bfa340b52
10 changed files with 62 additions and 2 deletions

View File

@@ -92,6 +92,10 @@ app.map({
// },
'/project/:project/label/': {
get: [ mw.label.list ],
// post: [ mw.label.post ],
},
'/project/:project/configuration/:path(*)?': {
get: [ mw.configuration.get ],
// post: [ mw.label.post ],
},
//