For testing requests with this module, we can use the http://httpbin.org service and try these requests, executing each type separately. In all cases, the code to execute to get the desired output will be the same, the only thing that will change will be the type of request and the data that is sent to the server:
You can find the following code in the testing_api_rest_get_method.py file:
import requests,jsonresponse = requests.get("http://httpbin.org/get",timeout=5) ...