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

Implement GET request for single shares #921

Merged
merged 2 commits into from
Jul 1, 2020
Merged

Implement GET request for single shares #921

merged 2 commits into from
Jul 1, 2020

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Jul 1, 2020

Implement GET request for single shares.
Replace "token" with "shareID" in update code as it was meant to be the
share id, to avoid confusion.

Quickly tested with curl:

  • TEST: get non-existing share returns 404 status
  • TEST: get user share returns user share info with populated resource fields
  • TEST: get public share returns pulib chsare info with populated resource fields

API tests cannot be enabled yet due to other unrelated issues further down I need to look into.

Vincent Petry added 2 commits July 1, 2020 14:13
Implement GET request for single shares, which tries the public share
provider first and then the user share provider, similar to how
isPublicShare is working.

Replaced "token" with "shareID" in update code as it was meant to be the
share id, to avoid confusion.
MailSend field is actually an int.
@labkode labkode merged commit fc4fd34 into cs3org:master Jul 1, 2020
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

Successfully merging this pull request may close these issues.

Share providers error handling
2 participants