Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operation level servers support for java okhttp-gson client #10925

Merged
merged 6 commits into from
Nov 25, 2021
Merged

Add operation level servers support for java okhttp-gson client #10925

merged 6 commits into from
Nov 25, 2021

Commits on Nov 17, 2021

  1. Configuration menu
    Copy the full SHA
    f93c94d View commit details
    Browse the repository at this point in the history
  2. add getter/setter methods

    Add methods for hostIndex and customBaseUrl
    ajrice6713 committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    eb2b4fd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b5e078d View commit details
    Browse the repository at this point in the history
  4. Add custom baseUrl logic

    if you dont specifically declare a custom base url using the set method then it uses the 1st server in the operation host index array
    
    if no custom url is set and the operation base path array is empty however, the call throws an exception
    ajrice6713 committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    e4501e6 View commit details
    Browse the repository at this point in the history
  5. Update server selection logic

    First checks to see if a custom url is provided
    
    If not, checks to see if operation level server is defined and uses the supplied host index (default 0)
    
    If neither is supplied, uses the ApiClient default base path
    ajrice6713 committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    481457a View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2021

  1. Update samples and docs

    ajrice6713 committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    3918772 View commit details
    Browse the repository at this point in the history