Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion entity-api-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ paths:
schema:
type: object
properties:
dataset_uuid:
uuid:
type: string
description: The uuid of a dataset
revision_number:
Expand Down
6 changes: 3 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2079,6 +2079,7 @@ def retract_dataset(id):
list
The list of revision datasets
"""
@app.route('/entities/<id>/revisions', methods=['GET'])
@app.route('/datasets/<id>/revisions', methods=['GET'])
def get_revisions_list(id):
# By default, do not return dataset. Only return dataset if return_dataset is true
Expand All @@ -2101,7 +2102,7 @@ def get_revisions_list(id):

# Only for Dataset
if normalized_entity_type != 'Dataset':
bad_request_error("The entity of given id is not a Dataset")
bad_request_error("The entity is not a Dataset. Found entity type:" + normalized_entity_type)

# Only published/public datasets don't require token
if entity_dict['status'].lower() != DATASET_STATUS_PUBLISHED:
Expand Down Expand Up @@ -2141,7 +2142,7 @@ def get_revisions_list(id):
for revision in normalized_revisions_list:
result = {
'revision_number': revision_number,
'dataset_uuid': revision['uuid']
'uuid': revision['uuid']
}
if show_dataset:
result['dataset'] = revision
Expand Down Expand Up @@ -3460,4 +3461,3 @@ def validate_organ_code(organ_code):
print(str(e))
logger.error(e, exc_info=True)
print("Error during startup check the log file for further information")