Juan Hernandez has submitted this change and it was merged.
Change subject: frontend: Send "Version" header to the API
......................................................................
frontend: Send "Version" header to the API
In the near future the server will support multiple versions of the API,
in particular it will support versions 3 and 4. The users of the API
will be encouraged to explicitly indicate what version they want to use.
To do so, the will be asked to send the "Version" with every request.
The value of this header will be the requested version. Alternatively it
will also be possible to specify the requested version as a prefix in
the URL, like "/v3/vms" or "/v4/vms". When the version isn't
explicitly
specified the server will select a default, which will be configurable
in the future (currently it is "4", and it is hard-coded). To avoid
surprises if the default version is changed this patch modifies the
frontend so that it will always explicitly request version 4 of the API,
using the "Version" header.
Change-Id: I18f93fd451639f773aa61ec44ff5e53e0ce5e146
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/restapi/RestApiSessionManager.java
1 file changed, 13 insertions(+), 0 deletions(-)
Approvals:
Juan Hernandez: Verified
Jenkins CI: Passed CI tests
Vojtech Szocs: Looks good to me, approved
--
To view, visit
https://gerrit.ovirt.org/52981
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I18f93fd451639f773aa61ec44ff5e53e0ce5e146
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Alexander Wels <awels(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>