You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use redis-commander for running FLUSHALL from my web application. So I have redis-commander in my Docker stack running under the pathprefix /redis-commander and it seems I can do a POST to /redis-commander/apiv2/exec/<my instance> but I'm not sure this is the way to go about.
Also it would be nice to be able to set CORS on this API so that I can access the API from my development server.
Cheers!
The text was updated successfully, but these errors were encountered:
currently you have to make two calls to get the result you want. First log in and get the queryToken, second call is the .../exec/... one you already found. The queryToken has to be added to the body or url as param redisCommanderQueryToken or added as Authorization: Bearer ... HTTP header.
$ curl -X POST -d 'username=myuser&password=mypass' http://localhost:8081/redis-commander/signin
{"ok":true,"bearerToken":"eyJh...","queryToken":"eyJhb..."}
$ curl -i -X POST -d 'cmd=FLUSHALL&redisCommanderQueryToken=eyJhb...' http://localhost:8081/redis-commander/api/v2/exec/R:192.168.1.41:6379:1
Hi,
I want to use redis-commander for running
FLUSHALL
from my web application. So I have redis-commander in myDocker stack
running under the pathprefix/redis-commander
and it seems I can do aPOST
to/redis-commander/apiv2/exec/<my instance>
but I'm not sure this is the way to go about.Also it would be nice to be able to set CORS on this API so that I can access the API from my development server.
Cheers!
The text was updated successfully, but these errors were encountered: