-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from ipfs/ipfs/api
WIP: IPFS API (core+http+cli)
- Loading branch information
Showing
6 changed files
with
158 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,36 @@ | ||
# IPFS API Spec | ||
IPFS API Specifications (core + http + cli) | ||
=========================================== | ||
|
||
> Official spec of the APIs that ipfs implementations must conform to, as well as test suites to ensure they do. | ||
> This document presents the specifications for the IPFS APIs, namely: 'core', the programmatic interface, 'http', a networked API interface over HTTP and 'cli', the command line interface to interact with IPFS. | ||
> **WARNING** This is a work in *progress*. There be dragons. | ||
Authors: | ||
|
||
The IPFS HTTP API Spec, in Apiary format, can be found in [ipfs/http-api-spec](//github.com/ipfs/http-api-spec). | ||
- David Dias | ||
- Richard Littauer | ||
|
||
The IPFS API has two levels. The first level is a general description based on function signatures and the second one is the transport specific description. | ||
Reviewers: | ||
|
||
* [Level 1 Spec - Transport Agnostic](level1.md) | ||
* Level 2 Spec - Transport Specific | ||
* [Level 2 CLI Spec](level2/cli.md) | ||
* [Level 2 HTTP(S) Spec](level2/http.md) | ||
- Jeromy Johnson | ||
- Juan Benet | ||
|
||
# Abstract | ||
|
||
This describes the [IPFS](https://ipfs.io/) APIs, including 'core', 'http' and 'cli'. | ||
|
||
# Status of this spec | ||
|
||
> **This spec is a Work In Progress (WIP).** | ||
# Organization of this document | ||
|
||
This RFC is organized by chapters described on the *Table of contents* section. Each of the chapters can be found in its own file. | ||
|
||
# Table of contents | ||
|
||
- [%N% Introduction]() | ||
- [%N% APIs]() | ||
- [%N.M% Core]() | ||
- [%N.M% HTTP]() | ||
- [%N.M% CLI]() | ||
- [%N% Implementations]() | ||
- [%N% Referecences]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# CLI Interface | ||
|
||
ipfs | ||
ipfs add | ||
ipfs bitswap | ||
ipfs bitswap stat | ||
ipfs bitswap unwant | ||
ipfs bitswap wantlist | ||
ipfs block | ||
ipfs block get | ||
ipfs block put | ||
ipfs block stat | ||
ipfs bootstrap | ||
ipfs bootstrap add | ||
ipfs bootstrap list | ||
ipfs bootstrap rm | ||
ipfs cat | ||
ipfs commands | ||
ipfs config | ||
ipfs config edit | ||
ipfs config replace | ||
ipfs config show | ||
ipfs daemon | ||
ipfs dht | ||
ipfs dht findpeer | ||
ipfs dht findprovs | ||
ipfs dht get | ||
ipfs dht put | ||
ipfs dht query | ||
ipfs diag | ||
ipfs diag net | ||
ipfs diag sys | ||
ipfs dns | ||
ipfs file | ||
ipfs file ls | ||
ipfs files | ||
ipfs files cp | ||
ipfs files ls | ||
ipfs files mkdir | ||
ipfs files mv | ||
ipfs files read | ||
ipfs files rm | ||
ipfs files stat | ||
ipfs files write | ||
ipfs get | ||
ipfs id | ||
ipfs init | ||
ipfs log | ||
ipfs log level | ||
ipfs log tail | ||
ipfs ls | ||
ipfs mount | ||
ipfs name | ||
ipfs name publish | ||
ipfs name resolve | ||
ipfs object | ||
ipfs object data | ||
ipfs object get | ||
ipfs object links | ||
ipfs object new | ||
ipfs object patch | ||
ipfs object patch add-link | ||
ipfs object patch append-data | ||
ipfs object patch rm-link | ||
ipfs object patch set-data | ||
ipfs object put | ||
ipfs object stat | ||
ipfs pin | ||
ipfs pin add | ||
ipfs pin ls | ||
ipfs pin rm | ||
ipfs ping | ||
ipfs refs | ||
ipfs refs local | ||
ipfs repo | ||
ipfs repo gc | ||
ipfs resolve | ||
ipfs stats | ||
ipfs stats bw | ||
ipfs swarm | ||
ipfs swarm addrs | ||
ipfs swarm addrs local | ||
ipfs swarm connect | ||
ipfs swarm disconnect | ||
ipfs swarm filters | ||
ipfs swarm filters add | ||
ipfs swarm filters rm | ||
ipfs swarm peers | ||
ipfs tar | ||
ipfs tar add | ||
ipfs tar cat | ||
ipfs tour | ||
ipfs tour list | ||
ipfs tour next | ||
ipfs tour restart | ||
ipfs update | ||
ipfs version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
> note: Currently, the HTTP API is a mix between a RPC and RESTful API | ||
# HTTP API | ||
|
||
|
||
|
||
# Interactive HTTP API documentation | ||
|
||
You can find a live version of the HTTP API on Apiary: | ||
|
||
- Apiary = http://docs.ipfs.apiary.io/# | ||
- Repo - https://github.com/ipfs/api |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.