Giter Club home page Giter Club logo

fcu_aws's Introduction

API List

Database (class)

init_connect

  • Description : Connect to specific MongoDB

get_user

  • Description : Find user

create_user

  • Description : Create user in MongoDB for /register

update_user_location

  • Description : Update user's location for /{store}/report

get_store_locations

  • Description : List all locations for /profile

Main

Login

  • Path : /login
  • Description : For User and Store login
  • Input : username , password
  • Return - True : status 200 , jwt token
  • Return - False : status 404

Register

  • Path : /register
  • Description : For User register
  • Input : username , password , phone
  • Return - True : status 200 , jwt token
  • Return - False : Exception(409 , User already exists)

Profile

  • Path : /profile
  • Description : List account data
  • Input : jwt token
  • Return - True : username , password , location , phone
  • Return - False : Exception(403 , JWTDecodeError)

Store

QRCode Generator

  • Path : /{store}/qrcode
  • Description : Generate QRCode for user to scan
  • Input : store
  • Return : base64(QRCode)

Visitors List

  • Path : /{store}/history
  • Description : List all visitors
  • Input : jwt
  • Return - True : List([username])
  • Return - False : Exception(403 , JWTDecodeError)

Update Location

  • Path : /{store}/report
  • Description : Update user's location by scanning QRCode
  • Input : jwt , location
  • Return - True : status 200
  • Return - False : Exception(403 , JWTDecodeError)

Auth

parse_token

  • Description : Check jwt token for login

get_login_state

  • Descriptino : Return loginstate for React.Index.jsx

fcu_aws's People

Contributors

mumuuuu avatar iandesuyo avatar kaoyihao avatar

Watchers

 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.