| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
Add a plug-in which ensures a route's content-type header matches the
expected type for that route.
Change-Id: I3376a0e35aae22747e90d7c46680639dbfc1404d
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Add the content_type property to indicate the content-type header for
routes.
As of now, POST and PUT expect 'application/json'.
Change-Id: Id7641189c818a2b38382edff37b204c40fb15874
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
To support the 'DELETE' REST verb, the d-bus interface to be implemented
is now xyz.openbmc_project.Object.Delete, instead of
org.openbmc.Object.Delete.
Change-Id: I7ddc139d6e7e5dde04127130ea1749d9a73d34c0
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
080a48e introduces a regression where the status field is
missing from the response for non 2xx responses.
Resolves openbmc/openbmc#1246
Change-Id: Idb18b100c9ebb34275b5c24f7609748603749d58
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
This patch makes the attribute after the attr
endpoint case insensitive.
Change-Id: I1c8a634bffc2eed4c63c8b89b7b5ea281c06a1bc
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
Fix an issue that occurs when doing a PUT using the attr
endpoint when an object has an interface without properties.
Change-Id: Ib3b2bb81dd287365851e6a67fec0c33479fdc543
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
Enable cross domain applications.
https://en.wikipedia.org/wiki/Cross-origin_resource_sharing
Change-Id: Id628ae387bb422fbfc4f319ce0847966ca8cbebf
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
Suppress traceback and provide an informative error message
when the mapper cannot respond to a query.
Resolves openbmc/openbmc#812
Change-Id: I85d4e59c5a25dc8a19fbdb1d1cf8c2a0f4350991
|
|
|
|
|
| |
Change-Id: I173aed206b4da49ca83261e4853426947f07f1f5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
| |
Change-Id: Ie41b568aa45b1f09b0940e5ee1b3472a46b08db1
Resolves: openbmc/phosphor-rest-server#25
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
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>
|