Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTesting GET Rest API with http://{domain}/ #1
Comments
|
Thanks! I see that With the new commit, your mock for that request would go in |
|
Thank you @nealrichardson, it works fine. Very useful package! |
|
Ok, merged that branch in and tagged a release: https://github.com/nealrichardson/httptest/releases/tag/1.1.2 Can't put it on CRAN just yet because the previous release was only a few days ago, but you can |
Hi,
I am not sure how to use
with_mock_APIagainst the full URL that containshttp(s)://{domain}.Where the json files should be located in this case?
For example if I want to do something like this in my package:
Can I mock the response?