Skip to content
Colin Heinzmann edited this page Jul 8, 2014 · 2 revisions

HTTP Registration API

API used by RPC servers to register their functions with the Node server.

The following return codes are default behavior across the following functions

Code Meaning
404 Couldn't find the resource requested
409 Naming conflict, a resource of the same type already exists

POST to /rpc/registration

Registers a new RPC server that the HTTP server should attempt to connect to.

Data

Item Meaning
url Url of the RPC server the node server should connect to
functions List of initial functions to be registered

Returns 201 CREATED and JSON

Item Meaning
id Unique ID of account

DELETE to /rpc/:id

Disconnects and deregisters given RPC server

Returns 200 OK

POST to /rpc/:id/:function_name

Configures the properties of a given function

Data

Item Meaning
enabled True or false depending on whether or not the function should be able to be called
tbd... More stuff should probably be included

Returns 200 OK