DiamondLightSource / DiamondLightSource/daq-config-server

Add endpoint to get beamline parameters

Open
#94 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
2
Avg merge
1d 12h
Merged PRs (30d)
2

Description

The first version of the config server just has one endpoint to get any whitelisted file either as a string, dict, or raw bytes.

We should make the server handle common configurations more intelligently. One of the most widely used configuration files is `beamlineParameters`. We should add another endpoint to get this specific file. It should require a beamline parameter and work out the file location from this. It should also have an option to specify a specific parameter. If this isn't used, then just send over the entire beamlineParameter dict.

The old version of this repo had similar functionality - see https://github.com/DiamondLightSource/daq-config-server/blob/4b0a2e2e8d395381645a653ec31109181738d1be/src/daq_config_server/app.py

## Acceptance Criteria
- Create + test new `get_beamline_parameter` endpoint which matches the above description

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.