| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
Use the functions in the new pyphosphor library.
|
| |
| |
| |
| |
| | |
sdbus and python-dbus don't report the unknown interface
exception the same way, so add a workaround.
|
|/
|
|
|
|
| |
The functions here for enumerating a tree of objects have
utility elsewhere and were added to pyobmc so removing
the duplicated code.
|
|\
| |
| | |
Add support for serving jsonp
|
|/
|
|
|
|
|
|
|
|
|
| |
Jsonp adds a javascript wrapper to json responses. It allows client
applications to work around cross domain restrictions imposed by some
browsers. For more information on jsonp:
https://en.wikipedia.org/wiki/JSONP
To get a jsonp response, an application adds a callback url parameter
with the desired name of the wrapper:
https://192.168.252.1/list?callback=my_callback
|
|\
| |
| | |
pep8, miscellaneous rest server updates
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously using a custom enumerate interface.
This is the standard interface.
Also, try to find OM implementing objects higher up in the tree.
This improves performance for sub-tree enumerate calls.
Don't try to get properties for ObjectManager interfaces.
For whatever reason sd-bus chokes on this, but it doesn't
have any properties so it isn't needed anyway.
|
| |
| |
| |
| | |
Apache2
|
| |
| |
| |
| |
| | |
No functional changes here. Just module/package namespace updates
to use the pyobmc library.
|
|/
|
|
| |
This is all whitespace changes flagged by pep8.
|
|\
| |
| | |
Add schema endpoint
|
| |
| |
| |
| |
| | |
Navigate to /<obj>/schema to get a dbus introspection dump
of <obj>.
|
|\ \
| | |
| | | |
Handle type errors for method call parameters.
|
| |/
| |
| |
| | |
Raise a 400 rather than internal server error for type errors.
|
|\ \
| | |
| | | |
Drop number of Rocket threads to 1
|
| |/
| |
| |
| |
| |
| | |
By default Rocket creates a threadpool 8 deep which uses a fair
amount of memory. We don't need a multi-threaded server so this
patch drops the min/max to 1.
|
|\ \
| |/
|/| |
Add authentication and authorization
|
|/
|
|
|
|
|
|
| |
Use session cookie plus in-memory server sessions scheme.
Add /login /logout POST routes: {"data": ["username", "password"]}.
Add authorization plugin with arbitrary authorization callbacks.
Add valid user and user in group authorization callbacks.
Require valid user authorization for all routes (besides login/logout).
|
|\
| |
| | |
Fix lower case Delete interface element
|
|/ |
|
|\
| |
| | |
Set response type correctly for errors
|
|/
|
|
|
| |
Error response type was 'text/html' but should be
'application/json'
|
|\
| |
| | |
port rest server to bottle wsgi framework
|
| |
| |
| |
| | |
Change script, datafile, names to match package name
|
| | |
|
|/
|
|
|
|
|
|
| |
Feature parity with the old version.
Numerous bug-fixes.
Improved error responses.
Add support for delete method.
Run server on port 443.
|
|\
| |
| | |
Add self-signed cert
|
|/
|
|
| |
Eventually will be running with SSL.
|
|\
| |
| | |
Support for org.openbmc.Object.Enumerate
|
| |
| |
| |
| |
| |
| | |
This interface greatly speeds up the enumerate action by
cutting the number of dbus calls to fetch objects for a subtree
down to one.
|
| |
| |
| |
| |
| |
| | |
If someone makes a call against '/org' for instance
we die checking for the attr action because there is
only path one component to the URL.
|
| |
| |
| |
| |
| | |
The DBUS API of the mapper had some minor changes. React to those.
Also pick up the new mapper binding.
|
| | |
|
|/ |
|
|\
| |
| | |
need this for upcoming delivery
|
|/
|
|
|
|
|
| |
Supports:
list, enumerate, attr, instance GET operations
method, instance POST
attr, instance PUT
|
|
|