Skip to content

Allow initialization from endpointSpecs directory#56

Merged
ajtucker merged 19 commits intomainfrom
issue/55-initialize-with-endpoints-directory
Oct 8, 2024
Merged

Allow initialization from endpointSpecs directory#56
ajtucker merged 19 commits intomainfrom
issue/55-initialize-with-endpoints-directory

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! 👍

@ajtucker ajtucker merged commit b4e80d9 into main Oct 8, 2024
@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