The download_metadata() method in pyclowder/api/v1 returns the metdata definitions and not the user uploaded metadata.jsonld data.
Currently it returns
This is the metadata definitions from mongodb and not the user uploaded metadata.
User uploaded metadata is returned in when the url points to metadata.jsonld instead of metadata.
Change the url to reflect the below curl request request GET 'http://localhost:8000/api/datasets/6616e17ae4b097f5136d1115/metadata.jsonld?key='
The same change can be made in the upload_metadata method too. The upload_metadata() method gives error requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://clowder:9000/api/datasets/6616e17ae4b097f5136d1115/metadata?key= . This should also be changed to metadata.jsonld
The download_metadata() method in pyclowder/api/v1 returns the metdata definitions and not the user uploaded metadata.jsonld data. Currently it returns
This is the metadata definitions from mongodb and not the user uploaded metadata.
User uploaded metadata is returned in when the url points to
metadata.jsonld
instead of metadata. Change the url to reflect the below curl requestrequest GET 'http://localhost:8000/api/datasets/6616e17ae4b097f5136d1115/metadata.jsonld?key='
The same change can be made in the upload_metadata method too. The upload_metadata() method gives error
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://clowder:9000/api/datasets/6616e17ae4b097f5136d1115/metadata?key=
. This should also be changed to metadata.jsonld