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

Adding file upload handler #1525

Merged
merged 12 commits into from
Apr 9, 2021
Merged

Conversation

aloknerurkar
Copy link
Contributor

  • Adding new file upload handler (POST /bzz)
  • all unit tests passing

@@ -16,6 +16,14 @@ import (

const DefaultManifestType = ManifestMantarayContentType

const (
RootPath = "/"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@acud
The reason I moved these here is because I need them in the traversal tests. The traversal package doesn't need this. I don't see any particular reason why any package apart from api would need this.

api package imports traversal, so I cannot import api in traversal pkg. Also if these change in future, the traversal tests need to change. So maybe enough reason to move these here? That way both packages can access these as they both depend on manifest

@aloknerurkar aloknerurkar requested a review from acud April 2, 2021 12:21
@aloknerurkar aloknerurkar linked an issue Apr 2, 2021 that may be closed by this pull request
pkg/api/bzz.go Outdated Show resolved Hide resolved
@aloknerurkar aloknerurkar changed the title WIP: Adding file upload handler Adding file upload handler Apr 8, 2021
@aloknerurkar aloknerurkar requested a review from acud April 8, 2021 21:12
@aloknerurkar aloknerurkar self-assigned this Apr 8, 2021
@aloknerurkar aloknerurkar merged commit 62f37ed into feat/apiCleanup.1 Apr 9, 2021
@aloknerurkar aloknerurkar deleted the feat/apiCleanup.2 branch April 9, 2021 14:04
aloknerurkar added a commit that referenced this pull request Apr 9, 2021
File upload handler. New header for collections. Fixing tests. Adding new tests. Open API changes.
aloknerurkar added a commit that referenced this pull request Apr 15, 2021
File upload handler. New header for collections. Fixing tests. Adding new tests. Open API changes.
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.

Eliminate collections package, remove /files endpoint
2 participants