I'm trying to create a login session using the REST API with the /rest/auth/1/session POST method. It always returns me a 401 unauthorized while doing Basic authentication. I have also tried json method but its not returning any response.
{ "username": "myuser", "password": "mypassword" } Please help.