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

Mocking the API? #518

Closed
rschiefer opened this issue Apr 17, 2020 · 2 comments
Closed

Mocking the API? #518

rschiefer opened this issue Apr 17, 2020 · 2 comments
Labels
type: non-library issue API issue not solvable via the SDK

Comments

@rschiefer
Copy link

Do you have any good examples of how to mock the API usage?

The static nature of the examples don't naturally lend to easy testing/mocking.

@JosephIaquinto
Copy link

I would try implementing a mock of ITwilioRestClient. See #268 for further discussion.

@thinkingserious thinkingserious added the type: non-library issue API issue not solvable via the SDK label Apr 20, 2020
@thinkingserious
Copy link
Contributor

Thanks for helping out @JosephIaquinto!

@rschiefer,

Please re-open if you require further assistance, thanks for reaching out!

You may also want to investigate utilizing the prism mock server utilizing our developing OpenAPI spec - see the .json files here. We don't have a working example just yet, however.

With best regards,

Elmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: non-library issue API issue not solvable via the SDK
Projects
None yet
Development

No branches or pull requests

3 participants