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

Undocumented: bucket upload return JSON #48

Open
sunarch opened this issue Jan 12, 2022 · 0 comments
Open

Undocumented: bucket upload return JSON #48

sunarch opened this issue Jan 12, 2022 · 0 comments

Comments

@sunarch
Copy link
Contributor

sunarch commented Jan 12, 2022

The documentation shows in the example at https://developers.zenodo.org/#quickstart-upload that a JSON object is returned for uploads with the new files API, but the details of this object are not documented:

{
  "key": "my-file.zip",
  "mimetype": "application/zip",
  "checksum": "md5:2942bfabb3d05332b66eb128e0842cff",
  "version_id": "38a724d3-40f1-4b27-b236-ed2e43200f85",
  "size": 13264,
  "created": "2020-02-26T14:20:53.805734+00:00",
  "updated": "2020-02-26T14:20:53.811817+00:00",
  "links": {
    "self": "https://zenodo.org/api/files/44cc40bc-50fd-4107-b347-00838c79f4c1/dummy_example.pdf",
    "version": "https://zenodo.org/api/files/44cc40bc-50fd-4107-b347-00838c79f4c1/dummy_example.pdf?versionId=38a724d3-40f1-4b27-b236-ed2e43200f85",
    "uploads": "https://zenodo.org/api/files/44cc40bc-50fd-4107-b347-00838c79f4c1/dummy_example.pdf?uploads"
  },
  "is_head": true,
  "delete_marker": false
}

Specifically, the "links" part contains an "uploads" link, thad doesn't show up in the deposition files - retrieve object, and returns a 405 Method Not Allowed error for GET requests. See also zenodo/zenodo#2278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant