Skip to content

mongoishere/opendht_rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenDHT REST v0.1.0

OpenDHT REST is an API allowing for RESTful interaction with the OpenDHT library.

Documentation

After building the OpenDHT library and enabling Python Bindings, install the dependencies

pip install -r requirments.txt

This should install Flask and Connexion if they have not been installed already. Flask is used to create a simple web server using their framework. Connexion will allow OpenDHT REST to access the Swagger specification with Flask. Once installed, start the web server

cd opendht_rest && python core.py

This will start the web server which serves the REST API endpoints specified in the swagger.yml file

Endpoints

Method Endpoint Description
GET localhost:5000/v1/fetch/{key} Fetch value data for provided key
POST localhost:5000/v1/post/key{key}/value/{value} Append provided key-value pair

About

A RESTful API using Flask and Swagger 2.0 for OpenDHT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published