我用
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://localhost:3000/login.json -d "{"user" : { "email" : "sample@gmail.com", "password" : "password"}}"
它给出了token
和email
id 作为输出,但我怎样才能得到同样的东西
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST http://localhost:3000/login.json -d "{ "email" : "sample@gmail.com", "password" : "password"}"
我如何修改设计以使其正常工作?