As a consumer of preserved data, I want to see which specific version of the content-schema was used
As a consumer of preserved data, I want to see which specific version of the content-schema was used during the bulk data write.
The content-schema version must be a part of the DDMSDataset URI. e.g.
urn://<DDMS_ID>-<API_VERSION>/<ENTITY_TYPE>/<LOCAL_ID>/<DATASET_ID>/<CONTENT_SCHEMA_VERSION>
Acceptance Criteria:
- All POST
data
endpoints support theAccept: application/json; version=1.0.0
orAccept: application/parquet; version=1.0.0
header - The system answers status code 200 if the provided via header schema exists and the dataset has been written successfully.
- The system answers status code 400 with the following message
No schema version specified or invalid schema format. Check if the schema version is specified in the Accept header. Example: --header 'Accept: /;version=1.0.0'
if the schema version is empty or has an invalid format. - The system answers status code 400 with the following message
There is no model for the given version. Schema version {content_schema_version} is not one of the proper versions: {available_versions}
if the provided via header schema is not registered in the system.
Edited by Siarhei Khaletski (EPAM)