History log of /openbmc/phosphor-rest-server/module/ (Results 51 – 75 of 76)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
944cd04f10-Jul-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Allow json response plugin to be suppressed

Add a static class member suppress_json_resp that when
set to True will prevent the JsonApiResp plugin from
responding with a json wrapper.

Change-Id: I4

Allow json response plugin to be suppressed

Add a static class member suppress_json_resp that when
set to True will prevent the JsonApiResp plugin from
responding with a json wrapper.

Change-Id: I43aadb6b59bb21ef53e5252e4878157c8e13935e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

832ce25310-Jul-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

pep8 fixes

Change-Id: I253b1f23f266a6604e2392d19de25d2d7e7a1ec8
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

0dc6722608-Jul-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

Set content-type to routes that had none set

Resolves openbmc/openbmc#1927.

Change-Id: I05f0a1e37d8ebc83ebe1ff1d9aecba72ebc3aa39
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

9bc9499729-Jun-2017 Jayanth Othayoth <ojayanth@in.ibm.com>

rest_dbus: implement route 'download/dump/<dumpid>

This allows user to download dump file from BMC using dump id.

'curl -O -J -c cjar -b cjar -k -X GET https://<bmc_IP>/download/dump/1'
- This will

rest_dbus: implement route 'download/dump/<dumpid>

This allows user to download dump file from BMC using dump id.

'curl -O -J -c cjar -b cjar -k -X GET https://<bmc_IP>/download/dump/1'
- This will download the dump file on to the Host machine.

Resolves openbmc/openbmc#1508

Change-Id: I2821bfe8d68f80340512161c062503b92a7a7466
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>

show more ...

1444fd8c29-Jun-2017 Jayanth Othayoth <ojayanth@in.ibm.com>

rest_dbus: run JSON response format plugin conditionally

Run JSON response format verification plug-in only if the content-type
is 'application/json'.

Change-Id: I032b32193f05a68bf695a6c6c51fccfaba

rest_dbus: run JSON response format plugin conditionally

Run JSON response format verification plug-in only if the content-type
is 'application/json'.

Change-Id: I032b32193f05a68bf695a6c6c51fccfaba9b197a
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>

show more ...

0b62edfb08-Jun-2017 Leonel Gonzalez <lgonzalez@us.ibm.com>

Close file descriptor to release memory

Resolves openbmc/openbmc#1718

Change-Id: Ie3020e38682cd0195202f6b3eedbb0f4907fa666
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>

0bdef95d18-Apr-2017 Leonel Gonzalez <lgonzalez@us.ibm.com>

Converts value to expected type

Fixes openbmc/openbmc#1160

Change-Id: I5c36f5bc065a0b2fdac56c2ee92b0ed54258f238
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>

409f671b24-May-2017 Leonel Gonzalez <lgonzalez@us.ibm.com>

Finds correct property to set fan speed

Fixes openbmc/openbmc#1563

Change-Id: I73ce61e0416318917902ffdf4969b600236772d9
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>

db1a21e327-Apr-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: fix content-type check

Check content-type only for PUT, POST and PATCH.

Resolves openbmc/openbmc#1525.

Change-Id: I8ddddb344ecec13e1c07a7dba2ccac56c80302f7
Signed-off-by: Deepak Kodihal

rest_dbus: fix content-type check

Check content-type only for PUT, POST and PATCH.

Resolves openbmc/openbmc#1525.

Change-Id: I8ddddb344ecec13e1c07a7dba2ccac56c80302f7
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...

7ec0a4f411-Apr-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: allow route '/upload/image/<filename>'

This allows the user to provide a filename for the uploaded image.

'curl <options> -X PUT -T foo https://<bmc_IP>/upload/image/bar'
- This will sav

rest_dbus: allow route '/upload/image/<filename>'

This allows the user to provide a filename for the uploaded image.

'curl <options> -X PUT -T foo https://<bmc_IP>/upload/image/bar'
- This will save the file foo with the name bar on the BMC.

Resolves openbmc/openbmc#1332.

Change-Id: Ie3d04617114ec574c573ae0ac9ecf65769800062
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...

1af301a011-Apr-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: implement route '/upload/image'

Implement a route named '/upload/image' to be able to upload software upgrade
images to the BMC.

A typical upload via cURL would look like this :
'curl <o

rest_dbus: implement route '/upload/image'

Implement a route named '/upload/image' to be able to upload software upgrade
images to the BMC.

A typical upload via cURL would look like this :
'curl <options> -X POST -T <file_to_upload> https://<bmc_IP>/upload/image'.

The uploaded files are stored at /tmp/images/. The filename of the
uploaded file would be 'imageN', with N starting at 0.

Change-Id: I183f50a108791ef8e70b50fd5e331310240d7a78
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...

fb6cd48310-Apr-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: run Json format plugins conditionally

Run Json format verification plug-ins only if the content-type is
'application/json'.

Change-Id: Ia6e089b94cc24fbd630042414335af7ce1ccd707
Signed-of

rest_dbus: run Json format plugins conditionally

Run Json format verification plug-ins only if the content-type is
'application/json'.

Change-Id: Ia6e089b94cc24fbd630042414335af7ce1ccd707
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>

show more ...

461367a510-Apr-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: add plug-in to check content-type

Add a plug-in which ensures a route's content-type header matches the
expected type for that route.

Change-Id: I3376a0e35aae22747e90d7c46680639dbfc1404d

rest_dbus: add plug-in to check content-type

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>

show more ...

83afbaff10-Apr-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: Add content_type

Add the content_type property to indicate the content-type header for
routes.

As of now, POST and PUT expect 'application/json'.

Change-Id: Id7641189c818a2b38382edff37b

rest_dbus: Add content_type

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>

show more ...

6075bb4804-Apr-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

Change Delete interface

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: I7ddc139d

Change Delete interface

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>

show more ...

9c2531ee07-Mar-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Fix error response status regression

080a48e introduces a regression where the status field is
missing from the response for non 2xx responses.

Resolves openbmc/openbmc#1246

Change-Id: Idb18b100c9

Fix error response status regression

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>

show more ...

56ad87f321-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Make the attr endpoint case insensitive

This patch makes the attribute after the attr
endpoint case insensitive.

Change-Id: I1c8a634bffc2eed4c63c8b89b7b5ea281c06a1bc
Signed-off-by: Brad Bishop <bra

Make the attr endpoint case insensitive

This patch makes the attribute after the attr
endpoint case insensitive.

Change-Id: I1c8a634bffc2eed4c63c8b89b7b5ea281c06a1bc
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

69cb6d1821-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Fix attr PUT after empty interface

Fix an issue that occurs when doing a PUT using the attr
endpoint when an object has an interface without properties.

Change-Id: Ib3b2bb81dd287365851e6a67fec0c334

Fix attr PUT after empty interface

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>

show more ...

d0c404a621-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add CORS support

Enable cross domain applications.

https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

Change-Id: Id628ae387bb422fbfc4f319ce0847966ca8cbebf
Signed-off-by: Brad Bishop <brad

Add CORS support

Enable cross domain applications.

https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

Change-Id: Id628ae387bb422fbfc4f319ce0847966ca8cbebf
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

d4c1c55c20-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add HTTP OPTIONS support

The OPTIONS HTTP method allows clients to query the allowed methods
on a given path.

Change-Id: I762e85a6dbe2df3473dfa79c252c51ebe49c3ecb
Signed-off-by: Brad Bishop <bradle

Add HTTP OPTIONS support

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>

show more ...

88c76a4d20-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Allow clients to call HEAD

The HEAD method allows clients to get page response headers
without actually downloading the content.

Change-Id: Id69db83a74015df3a9f84d36f91a4a12e11ea7b6
Signed-off-by:

Allow clients to call HEAD

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>

show more ...

080a48ed21-Feb-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Add support for error response plugins

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

Add support for error response plugins

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>

show more ...

fce7756c28-Nov-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

Return HTTP 503 when mapper is busy

Suppress traceback and provide an informative error message
when the mapper cannot respond to a query.

Resolves openbmc/openbmc#812

Change-Id: I85d4e59c5a25dc8a

Return HTTP 503 when mapper is busy

Suppress traceback and provide an informative error message
when the mapper cannot respond to a query.

Resolves openbmc/openbmc#812

Change-Id: I85d4e59c5a25dc8a19fbdb1d1cf8c2a0f4350991

show more ...

8b0d3fa628-Nov-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

fix a pep8 error

Change-Id: I173aed206b4da49ca83261e4853426947f07f1f5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

dc3fbfa708-Sep-2016 Brad Bishop <bradleyb@fuzziesquirrel.com>

Raise 401 for invalid credentials

Change-Id: Ie41b568aa45b1f09b0940e5ee1b3472a46b08db1
Resolves: openbmc/phosphor-rest-server#25
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

1234