Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation for Dataverse content and file size info retrieval for Native API #6011

Merged
merged 1 commit into from Jul 11, 2019
Merged

Conversation

j-n-c
Copy link
Contributor

@j-n-c j-n-c commented Jul 11, 2019

If API Key is not provided, in 'Show Contents of a Dataverse' and 'Report the data (file) size of a Dataverse' calls from Native API, returned data does not reflect dataverse status:

'Show Contents of a Dataverse'
curl -X GET
http://localhost:8888/api/dataverses/3/contents
-H 'cache-control: no-cache'
returns:
{
"status": "OK",
"data": []
}
, although it contained unpublished datasets.

'Report the data (file) size of a Dataverse'
curl -X GET http://localhost:8888/api/dataverses/3/storagesize
-H 'cache-control: no-cache'

returns:
{
"status": "ERROR",
"message": "User :guest is not permitted to perform requested action."
}

Related Issues

Pull Request Checklist

…al for Native API

If API Key is not provided, in 'Show Contents of a Dataverse' and 'Report the data (file) size of a Dataverse' calls from Native API, returned data does not reflect dataverse status:

 'Show Contents of a Dataverse'
curl -X GET \
  http://localhost:8888/api/dataverses/3/contents \
  -H 'cache-control: no-cache'
returns:
{
    "status": "OK",
    "data": []
}
, although it contained unpublished datasets.

'Report the data (file) size of a Dataverse'
curl -X GET http://localhost:8888/api/dataverses/3/storagesize \
  -H 'cache-control: no-cache'

returns:
{
    "status": "ERROR",
    "message": "User :guest is not permitted to perform requested action."
}
@coveralls
Copy link

Coverage Status

Coverage remained the same at 19.577% when pulling 55f22c9 on j-n-c:j-n-c-patch-1 into 17ad1ee on IQSS:develop.

IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Code Review 🦁 to QA Jul 11, 2019
@kcondon kcondon self-assigned this Jul 11, 2019
@kcondon kcondon merged commit 884947e into IQSS:develop Jul 11, 2019
@djbrooke djbrooke added this to the 4.16 milestone Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants