sennetconsortium / entity-api

A set of web service calls to return information about SenNet entities
MIT License
0 stars 0 forks source link

Create a human readable metadata section for `Samples` #358

Closed maxsibilla closed 3 months ago

maxsibilla commented 3 months ago

Similar to get_source_mapped_metadata we want to create a new trigger called get_sample_mapped_metadata. This will convert any key such as storage_medium into Storage Medium (replace _ with spaces and capital case each word).

We will also want to group any keys/values that have the suffix _unit and _value. For example the keys source_storage_duration_unit and source_storage_duration_value should be combined to form "Source Storage Duration" and its value should be the combination of those fields values:

{
   "Source Storage Duration": "21 day"
}