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

Allow initialization from endpointSpecs directory #56

Merged
merged 19 commits into from
Oct 8, 2024

Conversation

ajtucker
Copy link
Contributor

@ajtucker ajtucker commented Oct 4, 2024

A sapi client is normally initialised using a base URL and path to an application.yaml file:

SapiClient::Application.new(base_url, 'some/path/application.yaml')

This PR adds the ability to pass an endpointSpecs directory instead, e.g.:

SapiClient::Application.new(base_url, 'some/path/endpointSpecs')

This is in support of https://github.com/epimorphics/fsa-rpa-api/issues/13 and retains backward compatibility with the existing initialisation method.

Copy link
Contributor

@joescottdave joescottdave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@jonrandahl jonrandahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outside of the versioning constraint updates in the README mentioned below, this looks great to me! 👍

README.md Outdated Show resolved Hide resolved
@ajtucker ajtucker merged commit b4e80d9 into main Oct 8, 2024
11 checks passed
@ajtucker ajtucker deleted the issue/55-initialize-with-endpoints-directory branch October 8, 2024 11:23
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.

3 participants