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

Document the HTTP API #1706

Closed
daviddias opened this issue Sep 15, 2015 · 9 comments
Closed

Document the HTTP API #1706

daviddias opened this issue Sep 15, 2015 · 9 comments
Labels
help wanted Seeking public contribution on this issue

Comments

@daviddias
Copy link
Member

We've been getting several questions about how the HTTP API works, it would be good to have a way to auto generate some docs for it.

@whyrusleeping @jbenet can you add the 'help wanted' label plz? @RichardLitt was interested in helping with this

@RichardLitt RichardLitt added the help wanted Seeking public contribution on this issue label Sep 15, 2015
@jbenet
Copy link
Member

jbenet commented Sep 15, 2015

@RichardLitt see #785

take a look at:

This would document both the HTTP API and the CLI API.

@jbenet
Copy link
Member

jbenet commented Sep 15, 2015

maybe we should move this discussion to another repo, called ipfs/ipfs-node-api or ipfs/node-api ? (we could put tests there, too)

@stadja
Copy link

stadja commented Sep 16, 2015

Hello :)
I am interested too on how does the http-api work !

How can I help ?

@gr0uch
Copy link

gr0uch commented Sep 18, 2015

+1, I wasn't aware that there is an HTTP API until I found this issue :)

@jamescarlyle
Copy link

Interested in helping

I can't get the API to work in a way that I expect, i.e. this CLI command

echo '{ "Links": [],"Data": "\u0008\u0002\u0012\u000chello world\n\u0018\u000c"}' | ipfs object put

should map to http POST to
http://localhost:5001/api/v0/object/put with the payload as the {Links, Data} block above

but I get back a 400 with "File argument 'data' is required"

@RichardLitt
Copy link
Member

@jbenet Thanks. Been taking a look at those - pinged one of the cofounders of Readme.io in #785. I hope we can get Readme.io working automatically, it looks like it's all manual markup, which would not be ideal.

maybe we should move this discussion to another repo, called ipfs/ipfs-node-api or ipfs/node-api ? (we could put tests there, too)

I'm confused - how would this be the node-api? Isn't that the function of ipfs/node-ipfs-api?

@jbenet
Copy link
Member

jbenet commented Oct 14, 2015

@RichardLitt sorry, the word node there meant an ipfs-node, not node.js. sigh confusion. maybe just ipfs/ipfs-api or even ipfs/api then.

@RichardLitt
Copy link
Member

Let's move this to another repo, I think there's a few different strands that should have their own discussions and space to grow.

Going to do that now, see if I can get the Readme parser working while I do it.

I started this awesome-docs repo to start crowdsourcing the best documentation practices, examples, and resources. Surprised it didn't exist already.

@RichardLitt
Copy link
Member

This has been solved. See ipfs/api and https://github.com/ipfs/specs/tree/master/api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue
Projects
None yet
Development

No branches or pull requests

6 participants