Hey hi Mount bankers,
I am new to this technology ,i am creating a get request using mountebank my requirement is when ever i hit that api it should send me a respose as i need but getting an error as : "requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=4545): Max retries exceeded with url: /
reqres.in/api/users/2 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:997)')))"
my json body is:
json_data = {
"port": 4545,
"protocol": "https",
"recordRequests": True,
"stubs": [
{
"predicates": [
{
"equals": {
"method": "GET",
"path": "/api/users/2"
}
}
],
"responses": [
{
"is": {
"statusCode": 201,
"headers": {
"Location": "
https://localhost:4545/reqres.in/api/users/2",
"Content-Type": "application/json"
},
"body": {
"data": {
"id": 2,
"email": "
janet....@reqres.in",
"first_name": "Janet",
"last_name": "Weaver",
"avatar": "
https://reqres.in/img/faces/2-image.jpg"
},
"support": {
"url": "
https://reqres.in/#support-heading",
"text": "To keep ReqRes free, contributions towards server costs are appreciated!"
}
}
}
},
{
"is": {
"statusCode": 400,
"headers": {
"Content-Type": "application/json"
},
"body": {"status":"error"}
}
}
]
},
{
"responses": [
{
"is": {"statusCode": 404}
}
]
}
]
}
Please let me know how to do this
regards
Keshav