summaryrefslogtreecommitdiff
path: root/static/redfish/v1
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-06-23 05:00:59 +0300
committerEd Tanous <ed@tanous.net>2022-08-01 02:05:10 +0300
commit5b224921d765a93c5f93a6012109a9a748ef7cd4 (patch)
tree8ed315bf8ae8032383f810c65fb670add6c552b9 /static/redfish/v1
parent75b63a2cfe2560b2d4267349882f19538c1fe2f2 (diff)
downloadbmcweb-5b224921d765a93c5f93a6012109a9a748ef7cd4.tar.xz
ServiceRoot Support Link header
The Redfish standard in section 8.2 states: A Link header containing rel=describedby shall be returned on GET and HEAD requests for Redfish resources. If the referenced JSON Schema is a versioned schema, it shall match the version contained in the value of the @odata.type property returned in this resource. This commit attempts to add this capability to ServiceRoot. Future similar patches will start adding this across the tree. To do this, a few things happen. First, this removes the implicit HEAD handling in the router. Because we now need explicit HEAD handling per-route with specific headers, there's no good way to make this generic. Next, it rearranges the code such that handleServiceRootGet can first call handleServiceRootHead, to avoid duplicating the addHeader call. Tested: Redfish protocol validator passes the RESP_HEADERS_REL_LINK_DESCRIBED_BY check for ServiceRoot. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I92248089a3545432c14f551309ea62332e554647
Diffstat (limited to 'static/redfish/v1')
0 files changed, 0 insertions, 0 deletions