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

Media collection enhancements #431

Merged
merged 10 commits into from Jun 6, 2018

Conversation

Projects
None yet
2 participants
@jimlambie
Copy link
Member

jimlambie commented Jun 3, 2018

DELETE

This PR adds the ability to send a DELETE request to a media collection, specifying a media document's _id property in the URL.

If successful, a 200 response is returned (or a 204 if feedback: false in config):

DELETE /media/5b10e5b76b600c760dc1cb93 HTTP/1.1

{
  "status": "success",
  "message": "Documents deleted successfully",
  "deleted": 1,
  "totalCount": 2
}

GET

This PR also adds support for GET requests for specific media files, e.g. http://localhost:3001/media/2018/06/02/norway.jpg

Digital Ocean Spaces

This PR also extends the S3 storage handler to support Digital Ocean Spaces. Simply add a DO access key + secret and an endpoint to configuration.

@eduardoboucas
Copy link
Member

eduardoboucas left a comment

🚀

@jimlambie jimlambie merged commit 3354b11 into develop Jun 6, 2018

3 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
security/snyk No new issues
Details

@jimlambie jimlambie deleted the feature/media-enhancements branch Jun 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment