Website & API overview

High-level map of the Rails app (amascut_web) that powers the site, credits, store, and game integration.

Key areas

Area Path in repo
HTTP routes config/routes.rb
Game-facing API app/controllers/api/v1/
Models app/models/
Background jobs app/jobs/

Auto-generated route snapshot

The section below is filled by rake wiki:generate from the Rails route set.

Routes (generated)

Verb Path Controller#action
GET /api/v1/credits/:username api/v1/credits#show
POST /api/v1/credits/:username/claim api/v1/credits#claim
POST /api/v1/credits/:username/claim_all api/v1/credits#claim_all
POST /api/v1/credits/:username/add api/v1/credits#add
GET /api/v1/votes/leaderboard api/v1/votes#leaderboard
GET /api/v1/votes/stats api/v1/votes#stats
GET /api/v1/votes/:username api/v1/votes#show
POST /api/v1/orders/create api/v1/orders#create
POST /api/v1/orders/create_paypal api/v1/orders#create_paypal
GET /api/v1/orders/:username/unclaimed api/v1/orders#unclaimed
POST /api/v1/orders/:username/claim api/v1/orders#claim
POST /api/v1/users api/v1/users#create
POST /api/v1/users/sync_from_game api/v1/users#sync_from_game
POST /api/v1/users/ban api/v1/users#ban
POST /api/v1/users/unban api/v1/users#unban
POST /api/v1/users/transfer_rank api/v1/users#transfer_rank
GET /api/v1/ge/prices.js api/v1/grand_exchange#prices
GET /api/v1/ge/item/:item_id api/v1/grand_exchange#item
GET /api/v1/ge/item/:item_id/history api/v1/grand_exchange#history
GET /api/v1/ge/item/:item_id/transactions api/v1/grand_exchange#transactions
POST /api/v1/ge/transactions api/v1/grand_exchange#create_transaction
GET /api/v1/launch_events api/v1/launch_events#index
GET /api/v1/launch_events/claimable api/v1/launch_events#claimable
POST /api/v1/launch_events/claim api/v1/launch_events#claim
POST /api/v1/launch_events/record api/v1/launch_events#record
POST /api/v1/launch_events/record_test_leaderboard api/v1/launch_events#record_test_leaderboard
POST /api/v1/game_logs/online/remove api/v1/game_logs#online_remove
POST /api/v1/game_logs/session api/v1/game_logs#session
POST /api/v1/game_logs/player_snapshot api/v1/game_logs#player_snapshot
POST /api/v1/game_logs/items api/v1/game_logs#items
POST /api/v1/game_logs/trade api/v1/game_logs#trade
POST /api/v1/game_logs/online api/v1/game_logs#online
POST /api/v1/game_logs/player_character api/v1/game_logs#player_character
POST /api/v1/game_logs/raids_unique api/v1/game_logs#raids_unique
POST /api/v1/game_logs/raids_completed api/v1/game_logs#raids_completed
POST /api/v1/game_logs/public_chat api/v1/game_logs#public_chat
POST /api/v1/game_logs/clan_chat api/v1/game_logs#clan_chat
POST /api/v1/game_logs/yell api/v1/game_logs#yell
POST /api/v1/game_logs/private_chat api/v1/game_logs#private_chat
POST /api/v1/game_logs/command api/v1/game_logs#command