Hi,
I created view (design name- dev_gettest and view name -category). This is my function code
function (doc, meta) {
if(doc.type=="category"){
emit(doc.name,null);
}
}
i am getting result from cb server
http://127.0.0.1:8092/test/_design/dev_gettest /_view/_category?limit=6&stale=false&connection_timeout=60000&inclusive_end=true&skip=0&full_set=true
this is my cURL code for sync gateway :
curl -X GET "http://localhost:4985/test/_design/dev_gettest /_view/_category" -H "accept: application/json"
output : {“total_rows”:0,“rows”:[],“Collator”:{}}
curl --cookie "SyncGatewaySession=0b7acd58f576497591ac394ae7be5f0cf24926de" -X GET "http://localhost:4985/test/_design/dev_gettest /_view/_category"
output : {“total_rows”:0,“rows”:[],“Collator”:{}}
i added the following entry to my database config:
"adminInterface": "localhost:4985", "interface": "0.0.0.0:4984","databases": {
"test": {
"unsupported": {
"user_views": {
"enabled":true
}
}, "users": {....} }
I am unable to get document by cURL!
Couchbase server - 5.0
Couchbase SyncGatway - 1.5.1