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 support for better API debugging; start v1.5.0 development #325

Merged
merged 1 commit into from
Aug 29, 2021

Commits on Jul 5, 2021

  1. Add support for better API debugging; start v1.5.0 development

    In prepration for #305, this adds a mechanism to inspect all API requests and
    responses handled by the client. That way if you want to figure out why
    something isn't working as expected, or you'd like to make use of an
    undocumented field/feature, you have access to the response and can use it.
    
    This also adds a `Do()` method, with the same signature as `*http.Client.Do()`,
    that allows consumrs to generate their own request, have the client add
    authentication details and other headers, before sending the request to the
    PagerDuty API. This allows consumers to further debug and make use of features
    not yet supported in the REST client.
    
    Also, updates Version string to v1.5.0 as this is work towards that release.
    
    Lastly, this updates some of the test files to remove some duplication across
    them. These changes were needed due to the new fields added to the struct that
    had to be initialized to make HTTP requests.
    theckman committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    4f01c5b View commit details
    Browse the repository at this point in the history