Skip to content

Implemented 'ipfs files' API #196

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

Closed
wants to merge 4 commits into from
Closed

Conversation

adpadilla
Copy link

This work builds off of a previous, though incomplete, PR by JianYongKang/java/ipfs-http-client. It addresses all potential command argument permutations by adding a class based argument which uses a builder style pattern for caller to specify desired arguments to the files API calls. Open to suggestions as to how this or perhaps an alternative implementation can evolve to address the complete API. Also implemented the 'files write' api by leveraging existing Multipart.java with minor addition for consistency in specifying read/connection timeouts that was present in IPFS.java.

Tests added to APITest.java via APITest.testFiles() method.

@adpadilla
Copy link
Author

fyi I found creating the class based arguments necessary to address all the permutations for required/optional arguments. The used of overloaded functions seems limiting to address this.

@kevodwyer
Copy link
Collaborator

Thanks for the PR. The files api was added in a recent PR and permutations for arguments have mostly been addressed in PR: #206

@kevodwyer kevodwyer closed this Jan 24, 2023
@adpadilla
Copy link
Author

adpadilla commented Jan 24, 2023 via email

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.

2 participants