You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the description below of how to verify the latest version of a CEDAR template using the CEDAR API add an optional query parameter to the POST /metadata/validate, ensure-latest-cedar-version=true which, when included will extract the metadata_schema_id field from the uploaded metadata file and call the CEDAR ../versions endpoint to verify that it is the latest version of the schema (as specified in above ingest-ui #1487). If not the latest version return a 400 response with the message "This is not the latest version of the metadata specification as defined in CEDAR"
To ascertain if a CEDAR template is the latest version of the template call https://resource.metadatacenter.org/templates/<url encoded template id>/versions where the <url encoded template id> is constructed from value in the .tsv file in column metadata_schema_id and the url https://repo.metadatacenter.org/templates/<template id>. (api_key needed see below for curl example). Parse the output to make sure that the entry with is_latest_version == true` has the same template id as the one that is in the uploaded tsv.
Based on the description below of how to verify the latest version of a CEDAR template using the CEDAR API add an optional query parameter to the
POST /metadata/validate
,ensure-latest-cedar-version=true
which, when included will extract themetadata_schema_id
field from the uploaded metadata file and call the CEDAR../versions
endpoint to verify that it is the latest version of the schema (as specified in above ingest-ui #1487). If not the latest version return a400
response with the message "This is not the latest version of the metadata specification as defined in CEDAR"This new option will be used in ingest-ui #1487.
To ascertain if a CEDAR template is the latest version of the template call
https://resource.metadatacenter.org/templates/<url encoded template id>/versions
where the<url encoded template id>
is constructed from value in the .tsv file in columnmetadata_schema_id
and the urlhttps://repo.metadatacenter.org/templates/<template id>. (api_key needed see below for curl example). Parse the output to make sure that the entry with
is_latest_version == true` has the same template id as the one that is in the uploaded tsv.Where
The text was updated successfully, but these errors were encountered: