Skip to content

wasserfuhr/bigbottle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bigbottle

Join the chat at https://gitter.im/opendiploma/bigbottle Rest api for BigchainDB using BottlePy python framework.

Main motivation is to add possibility to access bigchaindb from any kind of server/client what support http calls. For python server application it's better to use native python driver from Bigchaindb.

It comes together with bottlepy version '0.13-dev'. Normally it should work if you have already bottlepy installed.

After you start bigchaindb instance, run in a folder with bigbottle:

$ python3 -m bottle --debug --reload --bind 0.0.0.0:8777 bigbottle

The are 3 methods so far.

GET http://localhost:8777/keys

Returns generated private and public keys. (Warning: temporary method for quick tests. It will be removed in a stable version)

POST http://localhost:8777/store

Stores an asset in bigchainDB. Takes 2 parameters: pub - public key, asset - asset to store (string).

GET http://localhost:8777/exists

Checks if asset exists in bigchainDB. Takes 1 parameter: asset - asset to check.

Bigbottle is in alpha version. I use it for my prototype. So fill free to join and contribute:)

About

Rest api for BigchainDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%