Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 960 Bytes

README.md

File metadata and controls

57 lines (45 loc) · 960 Bytes

Build Status

Rails Chats API - Sample Application

Install

Clone repository

git clone https://github.com/MLSDev/rails-chats-api

Install gems

cd rails-chats-api
bundle install

Run migrations

rake db:migrate

Run specs

rake

Run server

rails s

API documentation

Sign Up

curl -H 'Accept: application/json' \
     -d 'user[email][email protected]&user[password]=superhero&user[password_confirmation]=superhero' \
     localhost:3000/profile

Sign In

curl -H 'Accept: application/json' \
     -d 'session[email][email protected]&session[password]=superhero' \
     localhost:3000/session

Get own Profile info

curl -H 'Accept: application/json' \
     -H 'Authorization: Token token="XXXX-YYYY-ZZZZ"' \
     localhost:3000/profile