OkapiUrl with scheme and path in HttpModuleClient* HttpClient*

Description

okapiUrl may be https://folio.example.com/okapi
The constructors of HttpModuleClient, HttpModuleClient2, HttpClientFactory and HttpClientMock2 that take host and port only have these deficiencies:

  • They always set scheme=http, they cannot handle https

  • They make it likely that programmers inadvertently forget to prepend the okapiUrl path "/okapi" to the endpoint parameter.

Constructors that take the full okapiUrl are already there (parameter absHost).

Deprecate the host+port constructors and update the documentation to endorse the full okapiUrl usage.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Details

Assignee

Reporter

Tester Assignee

Priority

Development Team

Core: Platform

Affects versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 11, 2018 at 4:16 PM
Updated July 5, 2021 at 10:14 AM
TestRail: Cases
TestRail: Runs

Flag notifications