Home
last modified time | relevance | path

Searched hist:"16 caaee1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/bmcweb/include/
H A Dopenbmc_dbus_rest.hpp16caaee1 Tue Jan 15 11:40:34 CST 2019 Matt Spinler <spinler@us.ibm.com> REST: Add framework for returning method response

If a method has an output argument in the introspection
data, it has data that should be returned in the response JSON.

This code finds the output type in the introspection
data, and adds two function stubs: one to convert the output
data in the sd_bus message to JSON, and another to handle
combining the possible multiple method responses (from
different services or interfaces) into 1 output.

It also adds some logic on what to do if multiple methods
are called and only a subset fail or return data.
That logic can be summarized as:
* if any method passes, consider it a success
* return all the data that comes back, though the
merging is done in a future commit.

Change-Id: Ic50a3a88bb9d83672f7aed2b832217122e182048
Signed-off-by: Matt Spinler <spinler@us.ibm.com>