A small API application based on Rails 5
bundle install
rails db:create
rails db:migrate
rails db:seed
rails s
- Open http://0.0.0.0:3000 in a browser
/app
is the main folder of the application/spec
specs
- API http://0.0.0.0:3000/apipie
- Note, that you need to be authenticated and pass
access-token
,client
,token-type
in every request
- Using curl:
curl -XPOST -v -H 'Content-Type: application/json' http://0.0.0.0:3001/api/v1/auth/sign_in -d '{"email": "zarechenskiy.mihail@gmail.com", "password": "qwerty321" }'
rspec spec
- restructure messages by users
- improve api documentation with instructions for nested parameters
- add foreign keys
- improve methods getting friends/messages to use a single query instead of 2
- add acceptance tests