GitHub user rnewson added a comment to the discussion: How to redirect all new PUT /db/doc REST calls to updates handler?
update handlers exist for clients incapable of performing logic or data manipulation, and that's basically nothing these days. Do your document construction and validation on the client. You can use a validate_doc_update function on couchdb as an inescapable check on what is written to the database. so; 1. ensure all requests meet your requirements in your own code (or intermediate proxy). 2. use a validate_doc_update function in your couchdb database to ensure they are met (though also ensure this function is idempotent, in practice this means not comparing the request to the current time) GitHub link: https://github.com/apache/couchdb/discussions/5496#discussioncomment-12680473 ---- This is an automatically sent email for notifications@couchdb.apache.org. To unsubscribe, please send an email to: notifications-unsubscr...@couchdb.apache.org