Git Product home page Git Product logo

restfreenet's Introduction

##Freenet Rest plugin

This plugin exposes freenet functions via a REST API.

The API is accessible under http://:/rest/

Currently the following functions are supported:

  • Generation of SSK or USK key pair: GET http://{freenet host}:{freenet port}/rest/keygen/{keytype}[?filename={filename}&version={version}]

    Returns 200 response with a JSON object containing an InsertURI, requestURI pair of type {keytype} as data, or an error code with text error description on failure.

    If {filename} is provided a URI pair for inserting and requesting the specific filename is returned.

    If {filename} and {version} are provided a URI pair for inserting and requesting the specific filename and version is returned.

    e.g. GET http://localhost:8888/rest/keygen/usk?filename=hello.txt&version=3

  • Insert data: POST http://{freenet host}:{freenet port}/rest/insert/{insertURI}[?priority={priority num}&realtime={0|1}

    Inserts the data sent as request content to provided insertURI.

    If priority number is provided the priority of the insert is set to that value. Defualt is 1 (Interactive).

    If realtime boolean value is provided realtime for insert is set respectively. Default is false.

    Returns 200 response with a json object containing the request URI of inserted data on success, or an error code with text error description on failure.

    e.g. POST http://localhost:8888/rest/insert/USK@GHe[...]PO/HelloWorld.txt/0?priority=1&realtime=0

Version

Current version 0.1

Author

Konstantinos Togias [email protected]

Licensing

restFreenet is under the GPL, version 2 or later - see LICENSE.

restfreenet's People

Contributors

ktogias avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.