History log of /openbmc/phosphor-rest-server/ (Results 51 – 75 of 127)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
639b502e13-Oct-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: implement client subscription API

Import gobject for running the d-bus event loop, and gevent for
a greenlets support.

Resolves openbmc/openbmc#2318.

Change-Id: Ieaf2e6badcc22159f7470e3

rest_dbus: implement client subscription API

Import gobject for running the d-bus event loop, and gevent for
a greenlets support.

Resolves openbmc/openbmc#2318.

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

show more ...

b209dd1611-Oct-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

rest_dbus: add new route for event subscription

Add a route, '/subscribe', to be able to receive notifications from the
REST server over a websocket.

A client is supposed to create a new websocket

rest_dbus: add new route for event subscription

Add a route, '/subscribe', to be able to receive notifications from the
REST server over a websocket.

A client is supposed to create a new websocket by pointing to this route
in the URL. In this commit, the implementation of the route is to just
write a "Connected" message on the websocket.

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

show more ...

48c7641c11-Oct-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

phosphor-gevent: fix pep8 complaints

Fix under-indented lines.

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

0fe213fb11-Oct-2017 Deepak Kodihalli <dkodihal@in.ibm.com>

phosphor-gevent: enable websocket support

Set 'WebSocketHandler' as the handler_class.

Websockets are being supported to allow the REST server to be able to
"push" events to clients.

Change-Id: I4

phosphor-gevent: enable websocket support

Set 'WebSocketHandler' as the handler_class.

Websockets are being supported to allow the REST server to be able to
"push" events to clients.

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

show more ...

2c4d517511-Sep-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Remove unused intf_match

This base class member is unused and appears to be dead code. Remove.

Change-Id: Iafdab0e28fdf15bb38f9713ae098d654d05c5b4e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquir

Remove unused intf_match

This base class member is unused and appears to be dead code. Remove.

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

show more ...

b66b18cb21-Aug-2017 Gunnar Mills <gmills@us.ibm.com>

Change ImageUpload to open file once

When uploading an image via REST without a file name,
the image upload code closes the file twice, triggering
the inotify twice.

Resolves openbmc/openbmc#2174

Change ImageUpload to open file once

When uploading an image via REST without a file name,
the image upload code closes the file twice, triggering
the inotify twice.

Resolves openbmc/openbmc#2174

Change-Id: I24ff920c745b865bb4e25468e1895b38abf4a592
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...

18c3a24202-Aug-2017 Jayanth Othayoth <ojayanth@in.ibm.com>

Change Dump file storage location

Changed the dump storage location from /tmp/dumps to
/var/lib/phosphor-debug-collector/dumps

Change-Id: I792f7661d377cb8fc5d77441a61b640fd5c2daf4
Signed-off-by: Ja

Change Dump file storage location

Changed the dump storage location from /tmp/dumps to
/var/lib/phosphor-debug-collector/dumps

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

show more ...

a6a8a4c106-Aug-2017 Ratan Gupta <ratagupt@in.ibm.com>

Convert value to expected type during POST method

This fix converts the values passed as the method
arguments to the expected type during REST POST method
Invalid args exception handling.
if Invalid

Convert value to expected type during POST method

This fix converts the values passed as the method
arguments to the expected type during REST POST method
Invalid args exception handling.
if Invalid args exception occurs,this commit does the
following set of operations.

=>Get the method signature.
=>Convert the value to the expected type.
=>re-execute the post method.

Resolves openbmc/openbmc#1889

Change-Id: I3fe9feda40187e4b72adf800b6bc4eb46f05a27c
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>

show more ...

529029b510-Jul-2017 Brad Bishop <bradleyb@fuzziesquirrel.com>

Revert "Set content-type to routes that had none set"

This reverts commit 0dc67226dd38d5e603c9abc9f443809010ae85ee.

No longer needed after 944cd04.

Resolves: openbmc/openbmc#1932

Change-Id: I0f0a

Revert "Set content-type to routes that had none set"

This reverts commit 0dc67226dd38d5e603c9abc9f443809010ae85ee.

No longer needed after 944cd04.

Resolves: openbmc/openbmc#1932

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

show more ...

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

Revert "rest_dbus: run JSON response format plugin conditionally"

This reverts commit 1444fd8c9e9b0807b4f3682236bec7cb3eedeebf.

No longer needed after 944cd04.

Change-Id: I8b19d6506e8ffb6c51b145e8

Revert "rest_dbus: run JSON response format plugin conditionally"

This reverts commit 1444fd8c9e9b0807b4f3682236bec7cb3eedeebf.

No longer needed after 944cd04.

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

show more ...

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 ...

123456