Giter Club home page Giter Club logo

cheerseeapi's Introduction

Cheersee API

  • Concept: Create API endpoint with business logic to Gamify Dating
  • Tech stack: API with Ruby on Rails, Frontend with Angularjs, Realtime feature with Nodejs, database with MongoDB, Redis

#####Signup

  • POST: /api/v1/users
  • Params: email, password, password_confirmation, name, gender

#####Signin

  • POST: /api/v1/sessions
  • Params: email, password

#####Signout

  • DELETE: /api/v1/sessions

Access restrict areas

  • Set header 'Authorization' with 'Bearer ' + token

#####Update user

  • PUT: /api/v1/users/:id
  • Params: email, profile [age, interest, location, avatar]

#####Delete user

  • DELETE: /api/v1/users/:id

###Profile endpoints

#####Get profile

  • GET: /api/v1/profiles/:id (with :id => userId)

#####Update profile

  • PUT: /ap1/v1/profiles/:id
  • Params: age, interests, location, avatar

###Contest endpoints

#####Get contests

  • GET: /api/v1/contests

#####Post contest

  • POST: /api/v1/contests
  • Params: post, att (eg: minutes, metters), rule (eg: higher, lowest), ended_at, pic (array), u => [u_id, name, avatar]

#####Update contest

  • PUT: /api/v1/contests/:id (with id => contestId)
  • Params: post, att, rule, ended_at, :pic

#####Delete contest

  • DELETE: /api/v1/contests/:id

###Participation endpoints

#####Get participations

  • GET: api/v1/participations

#####Post participation

  • POST: api/v1/participations
  • Params: post, point, u => [u_id, name, avatar], pic

#####Update participation

  • PUT: api/v1/participations/:id (with id => participationId)
  • Params: post, point

#####Delete participation

  • DELETE: api/v1/participations/:id

#####Other endpoints avalable via

rake routes

cheerseeapi's People

Contributors

vuongngo 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.