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 APIVersion field to control API endpoint path #499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

catouc
Copy link

@catouc catouc commented Aug 29, 2022

This adds a field APIVersion into the Client struct that can be overriden from the outside if someone is running with a non-default API version on their Jira servers that conforms to the same rest API standards as the current default 2.

Usage would be:

jiraClient, _ := jira.NewClient(nil, "https://issues.apache.org/jira/")
jiraClient.APIVersion = "latest"

This allows for non-standard versions like `latest` without breaking
existing interfaces or functionality in any case.
@catouc catouc marked this pull request as ready for review September 3, 2022 15:53
@github-actions github-actions bot added the conflicts Indicates merge conflicts label Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Indicates merge conflicts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant