API Docs: https://rawg.io/apidocs
Documentation link: https://api.rawg.io/docs/
git clone https://github.com/mumble-07/api_practice_app.git
Gem used for this wrapper: REST CLIENT API (https://github.com/rest-client/rest-client)
bundle install
It is best practice not to push your own API key, so the key used in this mini project is hidden in credentials. Make sure to add your own API key to your own credential.
Run
EDITOR="code --wait" rails credentials:edit
rawg_api:
RAWG_API_TOKEN: <YOUR API KEY HERE>
app/api/rawg/request.rb) , the TOKEN was declared as this:
TOKEN = Rails.application.credentials.rawg_api[:RAWG_API_TOKEN]
Run
rails s
Postman documentation used for this mini project: https://documenter.getpostman.com/view/15112734/UUy38mVq
get '/creator-roles' => 'creator_roles#index'
get '/developers' => 'developers#index'
get '/games' => 'games#index'
get '/genres' => 'genres#index'
get '/platforms' => 'platforms#index'
get '/platforms/lists/parents' => 'parents_platforms#index'
get '/publishers' => 'publishers#index'
get '/stores' => 'stores#index'
get '/tags' => 'tags#index'