I have the below curl command, I want to create an equivalent rest request using Python. How to do that ?
curl -i -X POST -u user:password --form details=@/user/home/services.json http://localhost:7001/api/v1.1/services
How to pass multiple headers & authorisation in the request. Also I would like to modify some of the fields in the json file.
For example if the services.json is like
{
"serviceName":"abc",
"id":1
}
I would like to modify the serviceName
in the request I will be sending. How to achieve this ?