Sync gateway REST api to add user

.net

#1

I am not able to add user or role using Admin REST api of Sync gateway

on console logs it shows GET request even if i am posting data

POST /sync_gateway/_role HTTP/1.1
Host: 127.0.0.1:4985
Content-Type: application/json
{“name”:“admin”}

Log entry on console

2016-07-27T15:41:13.755+05:30 HTTP: #001: GET /sync_gateway/_role/ (ADMIN)
2016-07-27T15:41:13.877+05:30 HTTP+: #001: --> 200 (122.0 ms)


#2

Fixed , forget to add POST /sync_gateway/_role /