endpoint : "https://ap-south-1.aws.data.mongodb-api.com/app/data-zbema/endpoint/data/v1/action/insertOne";
apikey : "o2z2gUwIyqqrwT4KY933lfcGJzlGhOEQzeK77GskfiCKK2yH0AhFYVzbO3kVA840";
curl --location --request POST 'https://ap-south-1.aws.data.mongodb-api.com/app/data-zbema/endpoint/data/v1/action/findOne'
--header 'Content-Type: application/json'
--header 'Access-Control-Request-Headers: *'
--header 'api-key: <API_KEY>'
--data-raw '{
"collection":"student",
"database":"College",
"dataSource":"Cluster0",
"projection": {"_id": 1}
}'
send post request via ArduinoHttpClient instead of HTTPClient ,as i am using Tinygsm library for my 4g module as HTTPClient supports only wifi.h