I want to use filter during the _changes request. According to the Native API doc, you can add some parameters to the filter, but I wonder how can I add these parameters when I using REST API? I just want send the user profile such as username or uuid to the remote peer, so that remote peer can know who access the local database and do some access control.
Here are the REST API docs for _changes.
But if you want to authenticate, use HTTP Basic auth — i.e. add a standard WWW-Authenticate header with the username/password encoded in it.
Also, it’s kind of unusual for an app to access a server/peer’s
_changes API directly; usually it would let the replicator talk to the peer.