Skip to content

mitchell852/logh

Repository files navigation

== README

This repository houses the AngularJS responsive client and the stand-alone Rails API for LOGH located at http://www.loseorgohome.com and http://www.loseorgohome.com/api respectively.

Access Token


All requests (except for creating a user or creating a session (aka logging in)) require an access token sent via the Authorization Header. Get a valid access token by creating a session like this:

And then you can do this, for example:

API endpoints:

Sessions (sign in/out)

  • POST /api/sessions [ create session / login ]
  • DELETE /api/sessions/destroy [ destroy session / logout ]
Users

  • POST /api/users [ create user ]
  • GET /api/users/current [ show current user ]
  • PATCH /api/users/current [ update current user ]
  • PUT /api/users/contact [ contact us ]
Seasons

  • GET /api/seasons [ all seasons ]
Weeks

  • GET /api/seasons/:season_id/weeks [ season weeks ]
  • GET /api/seasons/:season_id/weeks/available [ available season weeks ]
  • GET /api/seasons/:season_id/weeks/:id [ show week ]
Leagues

  • GET /api/seasons/:season_id/leagues [ season leagues ]
  • GET /api/seasons/:season_id/leagues/public [ season public leagues ]
  • GET /api/seasons/:season_id/leagues/private [ season private leagues ]
  • POST /api/seasons/:season_id/leagues [ create league ]
  • GET /api/seasons/:season_id/leagues/:id [ show league ]
  • PATCH/PUT /api/seasons/:season_id/leagues/:id [ update league ]
  • PUT /api/seasons/:season_id/leagues/:id/message [ update league message ]
  • PUT /api/seasons/:season_id/leagues/:id/contact [ sends commish a message ]
  • DELETE /api/seasons/:season_id/leagues/:id [ destroy league ]
Invitations

  • GET /api/leagues/:league_id/invitations [ league invitations ]
  • POST /api/leagues/:league_id/invitations [ create invitation ]
  • POST /api/leagues/:league_id/invitations/new [ request invitation ]
  • DELETE /api/leagues/:league_id/invitations/:id [ destroy invitation ]
Teams

  • GET /api/seasons/:season_id/teams/all [ user all teams ]
  • GET /api/leagues/:league_id/teams [ league teams ]
  • POST /api/leagues/:league_id/teams [ create team ]
  • GET /api/leagues/:league_id/teams/:id [ show team ]
  • PATCH/PUT /api/leagues/:league_id/teams/:id [ update team ]
  • PATCH/PUT /api/leagues/:league_id/teams/:id/activate [ activate team ]
  • PATCH/PUT /api/leagues/:league_id/teams/:id/deactivate [ deactivate team ]
  • DELETE /api/leagues/:league_id/teams/:id [ destroy team ]
Picks

  • GET /api/teams/:team_id/picks [ team picks ]
  • POST /api/teams/:team_id/picks [ create pick ]
  • GET /api/teams/:team_id/picks/:id [ show pick ]
  • DELETE /api/teams/:team_id/picks/:id [ destroy pick ]
Games

  • GET /api/games/current [ current games ]
  • GET /api/weeks/:week_id/games [ week games ]
  • GET /api/weeks/:week_id/games/:id [ show game ]

About

AngularJS + Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published