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

Support API URL configuration in JS and Python SDKs #302

Merged
merged 6 commits into from
Feb 6, 2024

Conversation

ewanharris
Copy link
Member

Description

Adds support for configuring the API URL in the JS and Python SDKs instead of configuring a scheme + host. This is attempted in a backwards compatible manner, including making types optional.

Also copies across a change from the Python SDK where changes were made to the formatting of code in the README

References

Closes #298

JS PR: openfga/js-sdk#60
Python PR: openfga/python-sdk#67

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

@ewanharris ewanharris requested a review from a team as a code owner February 2, 2024 18:38
@ewanharris
Copy link
Member Author

ewanharris commented Feb 6, 2024

Build issue is fixed by #303

@ewanharris ewanharris added this pull request to the merge queue Feb 6, 2024
Merged via the queue into main with commit 1d2a6b0 Feb 6, 2024
13 checks passed
@ewanharris ewanharris deleted the feat/298-js-py-api-url branch February 6, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[JS, Python] Support apiUrl configuration option
2 participants