I tried to put verify_ssl=>false
to the request, but it doesn't work.
Below is my code:
def login_request (username, password)
request_body_map = {:userName => username, :password => password}
request_header = {:content_type => 'application/json', :accept => 'application/json'}
begin
res = RestClient.post endpoint, request_body_map.to_json, {:header => request_header, :verify_ssl => false}
response_data = JSON.parse(res.body)
rescue Exception => e raise e
end
end