1
0
mirror of https://github.com/bigchaindb/bigchaindb.git synced 2024-06-23 01:36:42 +02:00

Restrutured docs for HTTP and Python driver APIs

This commit is contained in:
troymc 2016-03-08 14:03:04 +01:00
parent d17e092b9c
commit 79194d4d34
4 changed files with 11 additions and 22 deletions

View File

@ -13,6 +13,7 @@ A scalable blockchain database. [The whitepaper](https://www.bigchaindb.com/whit
### [Install and Run BigchainDB Server](http://bigchaindb.readthedocs.org/en/develop/installing-server.html)
### [Run BigchainDB with Docker](http://bigchaindb.readthedocs.org/en/develop/installing-server.html#run-bigchaindb-with-docker)
### [The Python Server API by Example](http://bigchaindb.readthedocs.org/en/develop/python-server-api-examples.html)
### [The Python Driver API by Example](http://bigchaindb.readthedocs.org/en/develop/python-driver-api-examples.html)
## Links for Everyone
* [BigchainDB.com](https://www.bigchaindb.com/) - the main BigchainDB website, including newsletter signup

View File

@ -0,0 +1,5 @@
# The HTTP Client-Server API
The preferred way to communicate with a node in a BigchainDB cluster is via HTTP requests. Each node exposes a simple HTTP API (the HTTP Client-Server API) that provides, right now, two endpoints, one to get information about a specific transaction id, and one to push a transaction to the BigchainDB cluster.
The endpoints are documented using [Apiary](http://docs.bigchaindb.apiary.io/).

View File

@ -16,7 +16,8 @@ Table of Contents
installing-server
python-server-api-examples
bigchaindb-cli
python-api-tutorial
http-client-server-api
python-driver-api-examples
admin
cryptography
models

View File

@ -1,14 +1,8 @@
# Getting started with the HTTP API
# The Python Driver API by Example
The preferred way to communicate with a Node in the BigchainDB Federation is via HTTP requests.
Each Node exposes a simple HTTP API that provides, right now, two endpoints, one to get information about a specific
transaction id, one to push transactions to the BigchainDB network.
The endpoints are documented in [Apiary](http://docs.bigchaindb.apiary.io/).
## Usage example using the Python client
The Python driver API is used by app developers to develop client apps which can communicate with one or more BigchainDB clusters. Under the hood, the Python driver API communicates with the BigchainDB cluster using the BigchainDB HTTP client-server API.
Here's an example of how to use the Python driver API. First, launch an interactive Python session, then:
```python
In [1]: from bigchaindb.client import temp_client
In [2]: c1 = temp_client()
@ -39,15 +33,3 @@ Out[7]:
'operation': 'TRANSFER',
'timestamp': '1456763549.446138'}}
```
# Roadmap
The development of the API is still at the beginning and you can follow it on
[GitHub](https://github.com/bigchaindb/bigchaindb/issues?q=is%3Aissue+is%3Aopen+label%3Arest-api)
There are several key features still missing like:
- validating the structure of the transaction
- returns the correct error codes if something goes wrong
- add an endpoint to query unspents for a given public key