emmanuelperotto / api-test

API de teste para processo seletivo na Yi Mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tools and Gems

In this project I used:

Getting started

Clone the repository

git clone https://github.com/emmanuelperotto/api-test

Run this commands to create, seed database and run api locally

cd api-test
bundle install
rails db:create db:migrate db:seed
rails s

API Endpoints

Events

  • returns a list of all events in the database
  • Body JSON format (required)
{
 "event": {
   "name": "Teste",
   "description": "Teste",
   "lat": -15.783475,
   "lng": -47.899205
 }
}

Comments

  • returns a list of all comments in the database
  • returns a list of all reported comments in database
  • Body JSON format (required)
{
 "comment": {
   "text": "Teste",
   "user_id": 1,
   "event_id": 1
 }
}

Test Suite

 bundle exec rspec

About

API de teste para processo seletivo na Yi Mobile


Languages

Language:Ruby 99.5%Language:HTML 0.5%