Skip to content

Media collection enhancements#431

Merged
jimlambie merged 10 commits intodevelopfrom
feature/media-enhancements
Jun 6, 2018
Merged

Media collection enhancements#431
jimlambie merged 10 commits intodevelopfrom
feature/media-enhancements

Conversation

@jimlambie
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor

@eduardoboucas eduardoboucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jimlambie jimlambie merged commit 3354b11 into develop Jun 6, 2018
@jimlambie jimlambie deleted the feature/media-enhancements branch June 6, 2018 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants