Skip to content

Group project for Mod3 Turing School of Software and Design

Notifications You must be signed in to change notification settings

freeheeling/upvote_api

 
 

Repository files navigation

Build Status

For further documentation regarding the scope and functionality of this API, please review the repository supporting the Front-End - Here

Hosted

Endpoints

Ideas

  • get '/cohorts/ideas'

    • returns the index of all ideas in a Cohort
  • post '/cohorts/ideas/new'

    • post a new idea
  • get '/cohorts/ideas/:id'

    • show an idea
  • post '/cohorts/ideas/:id/edit'

    • edit an idea
  • post '/cohorts/ideas/:id/delete'

    • delete an idea

Votes

  • post '/cohorts/ideas/:id'
    • 'create' a vote

Statistics

  • get '/statistics'
    • 'show' current statistics

Login/Logout/OAuth

  • get '/logout'

    • logout and destroy the session
  • get 'auth/github'

    • login thru OAuth
  • get '/auth/github/callback'

    • login thru OAuth
  • get '/current_user'

    • get to current user

Data for all endpoints are exposed under an api and version (v1) namespace (e.g., /api/v1/cohorts), returned in JSON format.

Contributors

About

Group project for Mod3 Turing School of Software and Design

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 87.3%
  • HTML 7.1%
  • JavaScript 4.7%
  • CSS 0.9%