summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Added a license to obmc-rest fileBrad Bishop2016-03-181-0/+16
| | | | | | | | Apache2
| * Use pyobmc packageBrad Bishop2016-03-181-9/+11
| | | | | | | | | | No functional changes here. Just module/package namespace updates to use the pyobmc library.
| * Run through pep8Brad Bishop2016-03-181-699/+718
|/ | | | This is all whitespace changes flagged by pep8.
* Merge pull request #14 from bradbishop/schemaPatrick Williams2016-01-081-0/+32
|\ | | | | Add schema endpoint
| * Add schema endpointBrad Bishop2015-12-161-0/+32
| | | | | | | | | | Navigate to /<obj>/schema to get a dbus introspection dump of <obj>.
* | Merge pull request #11 from bradbishop/typeerrorsPatrick Williams2016-01-081-0/+3
|\ \ | | | | | | Handle type errors for method call parameters.
| * | Handle type errors for method call parametersBrad Bishop2015-12-021-0/+3
| |/ | | | | | | Raise a 400 rather than internal server error for type errors.
* | Merge pull request #12 from bradbishop/threadsPatrick Williams2016-01-081-1/+3
|\ \ | | | | | | Drop number of Rocket threads to 1
| * | Drop number of Rocket threads to 1Brad Bishop2015-12-021-1/+3
| |/ | | | | | | | | | | 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.
* | Merge pull request #10 from bradbishop/authPatrick Williams2016-01-081-0/+156
|\ \ | |/ |/| Add authentication and authorization
| * Add authentication and authorizationBrad Bishop2015-12-021-0/+156
|/ | | | | | | | 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).
* Merge pull request #9 from bradbishop/deletePatrick Williams2015-11-301-1/+1
|\ | | | | Fix lower case Delete interface element
| * Fix lower case Delete interface elementBrad Bishop2015-11-251-1/+1
|/
* Merge pull request #7 from bradbishop/errorsPatrick Williams2015-11-171-1/+1
|\ | | | | Set response type correctly for errors
| * Set response type correctly for errorsBrad Bishop2015-11-171-1/+1
|/ | | | | Error response type was 'text/html' but should be 'application/json'
* Merge pull request #6 from bradbishop/restPatrick Williams2015-11-163-371/+594
|\ | | | | port rest server to bottle wsgi framework
| * setuptools name updateBrad Bishop2015-11-132-1/+1
| | | | | | | | Change script, datafile, names to match package name
| * Remove old rest serverBrad Bishop2015-11-132-892/+522
| |
| * Rest server rewrite using Bottle microframeworkBrad Bishop2015-11-131-0/+593
|/ | | | | | | | Feature parity with the old version. Numerous bug-fixes. Improved error responses. Add support for delete method. Run server on port 443.
* Merge pull request #4 from bradbishop/certPatrick Williams2015-11-132-2/+52
|\ | | | | Add self-signed cert
| * Add self-signed certBrad Bishop2015-11-132-2/+52
|/ | | | Eventually will be running with SSL.
* Merge pull request #3 from bradbishop/enumeratePatrick Williams2015-11-091-29/+57
|\ | | | | Support for org.openbmc.Object.Enumerate
| * Make use of org.openbmc.Object.EnumerateBrad Bishop2015-11-031-2/+38
| | | | | | | | | | | | This interface greatly speeds up the enumerate action by cutting the number of dbus calls to fetch objects for a subtree down to one.
| * Check for path component lengthBrad Bishop2015-11-031-2/+2
| | | | | | | | | | | | 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.
| * React to mapper API changes.Brad Bishop2015-11-031-18/+10
| | | | | | | | | | The DBUS API of the mapper had some minor changes. React to those. Also pick up the new mapper binding.
| * Whitespace fixesBrad Bishop2015-11-031-5/+5
| |
| * Remove unused system bus connectionBrad Bishop2015-11-021-3/+3
|/
* Merge pull request #1 from bradbishop/masternkskjames2015-10-283-0/+349
|\ | | | | need this for upcoming delivery
| * REST server work in progressBrad Bishop2015-10-273-0/+349
|/ | | | | | | Supports: list, enumerate, attr, instance GET operations method, instance POST attr, instance PUT
* Initial commitPatrick Williams2015-10-271-0/+202
OpenPOWER on IntegriCloud