Coder Social home page Coder Social logo

flaggy-server's Introduction

FLAGGY

Scripts

./resetDB.sh dumps the information from the database, remodels the DB and loads the information back

Responses

Generic Response (generated by success(msg) or error(msg) in doppio.api.controllers):

  • status: Can be success or error.
  • msg: Contains success/error manage. Useful for debugging.

add_user:

  • status: Only method that, instead of success or error, returns
    • 0 for failure to add user
    • 1 for successfully adding user
    • 2 for an already existing user
  • u_id: User ID of newly added user or already existing user
  • last_checkin: Last checkin of user if user already exists
  • following: List of people user is following if user already exists

add_follow:

  • POST
  • inputs: u_id (following) , fb_ed (being followed)

followers:

  • POST
  • inputs: u_id (return followers of this user)

retrieve_f_request

  • POST

  • inputs: f_er, f_ed

  • request: Returns request that was queried, if successful.

    • p_id
    • follower_p_id
    • following_p_id
    • follower_name
    • secure_key
    • approve

unapproved_request():

  • unapproved: All the unapproved requests.
    • 1 (p_id)
      • follower_p_id
      • follower_name
      • secure_key
      • following_p_id
      • p_id
      • approve

approve_request:

  • GET
  • input: k (hash), approval (0 for reject, 1 for accept)

update_sensitivity:

  • POST
  • inputs: sensitivity, u_id

Emails

Create the HTML template of the email in flaggy/templates/email. Include the template in the doppio.api.emails module. Follow the example.

  • doppio.api.controllers.flaggy_email:
    • Returns success object if email sent successfully. Error otherwise.

flaggy-server's People

Contributors

bbekdemir avatar dslane avatar icanb avatar mihirpandya avatar

Watchers

 avatar  avatar

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.