8000 GitHub - wsxedcr/rails_kit: Rails · GitHub
[go: up one dir, main page]

Skip to content

About

Rails

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

########################################## ############ Create a user ############## ##########################################

curl \ -H ‘Accept: application/json’ \ -H ‘Content-Type: application/json’ \ -X POST \ -d ‘{ “user”: { “email”: “aa@aa.com”, “password”: “11111111” } }’ \ localhost:3000/users

curl \ -H ‘Accept: application/json’ \ -H ‘Content-Type: application/json’ \ -X POST \ -d ‘{ “user”: { “email”: “aa@aa.com”, “password”: “11111111” } }’ \ bs-ios-login.herokuapp.com/users


—————- response —————-


{

"id": 7,
"email": "aa@aa.com",
"created_at": "2015-06-21T01:58:30.348Z",
"updated_at": "2015-06-21T02:00:07.526Z",
"authentication_token": "QEUUjf74fgML7JdiYXHs",
"uid": null,
"provider": null,
"oauth_token": null

}

########################################## ############ login an user ############## ##########################################

curl \ -H ‘Accept: application/json’ \ -H ‘Content-Type: application/json’ \ -X POST -d ‘{ “user”: { “email”: “aa@aa.com”, “password”: “11111111” } }’ \ localhost:3000/users/sign_in

curl \ -H ‘Accept: application/json’ \ -H ‘Content-Type: application/json’ \ -X POST -d ‘{ “user”: { “email”: “aa@aa.com”, “password”: “11111111” } }’ \ bs-ios-login.herokuapp.com/users/sign_in


†4D47 ”————- response —————-


{

"id": 7,
"email": "aa@aa.com",
"created_at": "2015-06-21T01:58:30.348Z",
"updated_at": "2015-06-21T02:00:07.526Z",
"authentication_token": "QEUUjf74fgML7JdiYXHs",
"uid": null,
"provider": null,
"oauth_token": null

}

About

Rails

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0