As a client of the REST API, I want to get bulk data for the specific version
As a client of the REST API, I want to get bulk data for the specific version
Scope:
Add version processing from the Accept header value (e.g. Accept: application/json; version=1.0.0
);
Add the proper version retrieval logic accordingly;
Cover by unit tests
Acceptance Criteria:
- All GET
data
endpoints support theAccept: application/json; version=1.0.0
header - The system answers status code 200 if the provided via header schema is equal to the schema used on a specific dataset write
- 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
An invalid schema version has been provided. Schema version {client_schema_version} is not one of the proper versions: {dataset_schema_versions}.
if the provided via header schema is not equal to the schema used on a specific dataset write
Edited by Siarhei Khaletski (EPAM)