Skip to content

JoaoVictorCabraldeMelo/PokeApiBack

Repository files navigation

README

Ruby version

# 3.0.2

System dependencies

  • Postgres version 13

        bundle install 

Configuration

Tem serializers e tem config the test com shoulda, factory e rspec

  • Database creation

        rails db:create
        rails db:migrate
        rails db:seed

Database initialization

Utiliza HTTParty gem como seed do banco de dados

How to run the test suite

Dentro do repo utilize rspec
```bash
    rspec
```

Deployment instructions

  • Heroku Postgres

Servidor

https://pokeapicabral.herokuapp.com

API Endpoints

Pegando todos os Pokemons

GET -> https://pokeapicabral.herokuapp.com/pokemons

Fazendo historico de troca

POST -> https://pokeapicabral.herokuapp.com/histories

  • Request body esperado
    {
        "pokemon_player1_ids": [ 100, 200, 300 ],
        "pokemon_player2_ids": [ 400, 500, 600 ]
    } 

Lembrando os ids de pokemon no banco vao ate 700

Historico de Trocas

GET -> https://pokeapicabral.herokuapp.com/histories

Repositorio do Frontend

https://github.com/JoaoVictorCabraldeMelo/PokeApiFront

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published