summaryrefslogtreecommitdiffstats
path: root/module/obmc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add HTTP OPTIONS supportBrad Bishop2017-02-261-11/+32
| | | | | | | | The OPTIONS HTTP method allows clients to query the allowed methods on a given path. Change-Id: I762e85a6dbe2df3473dfa79c252c51ebe49c3ecb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Allow clients to call HEADBrad Bishop2017-02-261-4/+13
| | | | | | | | The HEAD method allows clients to get page response headers without actually downloading the content. Change-Id: Id69db83a74015df3a9f84d36f91a4a12e11ea7b6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add support for error response pluginsBrad Bishop2017-02-211-45/+52
| | | | | | | | | | | | | | The Bottle plugin framework only applies to normal responses. Build on that by monkey-patching the Bottle error handler with a new one that makes a series of callbacks. Update the existing plugins such that where appropriate they can apply their logic to error responses in addition to normal responses as they already do. Change-Id: Ifc2bac0e5120a3b0475f3b78f8bd822711f9c736 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Return HTTP 503 when mapper is busyBrad Bishop2016-11-281-0/+3
| | | | | | | | | Suppress traceback and provide an informative error message when the mapper cannot respond to a query. Resolves openbmc/openbmc#812 Change-Id: I85d4e59c5a25dc8a19fbdb1d1cf8c2a0f4350991
* fix a pep8 errorBrad Bishop2016-11-281-1/+2
| | | | | Change-Id: I173aed206b4da49ca83261e4853426947f07f1f5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Raise 401 for invalid credentialsBrad Bishop2016-09-081-2/+2
| | | | | | Change-Id: Ie41b568aa45b1f09b0940e5ee1b3472a46b08db1 Resolves: openbmc/phosphor-rest-server#25 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Split server and applicationBrad Bishop2016-08-301-0/+749
Provide the REST server as a python module, enabling it to be hosted by any WSGI provider. Provide a Rocket startup script with configurable WSGI application. Change-Id: I1a9c25b10c33b08dfb8f60dc6c33aaf727562a9f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud