This repository has been archived by the owner. It is now read-only.
Commissaire Service Framework
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf
doc
example
src/commissaire_service
test
.gitignore
.redhat-ci.yml
.travis.yml
CHANGELOG.md
CONTRIBUTORS
Dockerfile
LICENSE
MAINTAINERS
MANIFEST.in
README.md
requirements.txt
setup.cfg
setup.py
test-requirements.txt
tox.ini

README.md

commissaire-service

Commissaire Service Framework

Documentation Build Status

Invocations

The library uses jsonrpc v2 for remote invocation and notifications internals.

Note: The last element for the routing_key must match the method to be called

Example

{
    "jsonrpc": "2.0",                             // Required header noting version of jsonrpc
    "id": "6829688e-649d-4de7-8649-afefca88781d", // Unique message id
    "method": "add",                              // The remote method to call
    "params": [1, 2]                              // The remote parameters to provide to the method
}

Example Response

{
    "jsonrpc": "2.0",                             // Required header noting version of jsonrpc
    "id": "6829688e-649d-4de7-8649-afefca88781d", // Unique message id
    "result": 3                                   // Result of the call
}

Example Error

{
    "jsonrpc": "2.0",                             // Required header noting version of jsonrpc
    "id": "6829688e-649d-4de7-8649-afefca88781d", // Unique message id
    "error": {
        "code": -32602,                           // http://www.jsonrpc.org/specification#error_object
        "message": "Method not found"             // Error message or Exception message
        "data": {                                 // Houses exception
            "exception": "TypeError"              // The name of the exception class or None
        }
    }
}

Creating a Service

See the documentation.