I am trying to send json data to a database.I am using python and the requests and couchdb libraries. Here is the code :
import requests
import json
import couchdb
url = 'http://admin:admin@localhost:5984/_utils/#database/products/first_product'
payload = {'first_product':'tshirt','price':"10 dollars'}
res = requests.post(url, data=payload)
print(res.text)
The output tells me that only GET and HEAD method were allowed. But in the documentation, I saw, that it was possible to use POST method. So if we can not use POST we can't make it's own API that use POST method ? Thanks for answering !