MLSDev / rails-chats-api

Chats API - test application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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]=john@mcclane.com&user[password]=superhero&user[password_confirmation]=superhero' \
     localhost:3000/profile

Sign In

curl -H 'Accept: application/json' \
     -d 'session[email]=john@mcclane.com&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

About

Chats API - test application


Languages

Language:Ruby 89.4%Language:HTML 9.3%Language:CSS 1.3%