Giter VIP home page Giter VIP logo

squaredex's Introduction

squaredex

##master: Build Status dev: Build Status

This is going to be a quick and dirty outline of the endpoints that have been created for consumption by the front-end. Emphasis on quick and dirty, at least for now.

Requirements

The requirements for this project's MVP is as highlighted in this google document here.

  • Parts painted green are already implemented
  • Parts painted yellow are under development
  • Parts un-painted(painted default ๐Ÿ˜ ) are up for grabs

Auth

To initiate Authentication via slack, create a link/button that opens https://squaredex-api.herokuapp.com/api/auth/slack

Once the user is done giving permission, it would redirect to https://squaredex.herokuapp.com/auth-return with the user's token/credentials.

To authenticate a request, the following headers need to be added to the request: access-token, client and uid. These are to be obtained from the path parameters in the redirect url.

You can call GET https://squaredex-api.herokuapp.com/api/auth/validate_token to validate token You can call PATCH https://squaredex-api.herokuapp.com/auth to edit the sign in users' details. Params are: name, nickname, github_username. I think, for now, users should only be able to change github_username.

Users

GET https://squaredex-api.herokuapp.com/api/leaderboard gets the top 20 devs/users (sorted by karma) devs on square.

GET https://squaredex-api.herokuapp.com/api/user responds with the current user's details. POST https://squaredex-api.herokuapp.com/api/karma_request to create a Karma request. Params are: reason, to (UID of user the request is for), project_id.

PATCH https://squaredex-api.herokuapp.com/api/karma_request to update a Karma request (before it's approved or rejected). Params are: reason, to (UID of user the request is for), project_id.

squaredex's People

Contributors

timigod avatar x6iae avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

x6iae

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.